aboutsummaryrefslogtreecommitdiffstats
path: root/gawkapi.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-04-28 16:46:05 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-04-28 16:46:05 +0300
commit6853b3e94c03194200c5a7c4450820a8eaa0920f (patch)
tree0e68baf9f5d687a0a3b6543f01522a56bf010279 /gawkapi.h
parent020be4cb81b519a597acbf85e683cfb95993c2b9 (diff)
parentb4ef28f58688cf3c3a5878c595b6582144ee2cf1 (diff)
downloadegawk-6853b3e94c03194200c5a7c4450820a8eaa0920f.tar.gz
egawk-6853b3e94c03194200c5a7c4450820a8eaa0920f.tar.bz2
egawk-6853b3e94c03194200c5a7c4450820a8eaa0920f.zip
Merge branch 'master' into feature/regex-type
Diffstat (limited to 'gawkapi.h')
-rw-r--r--gawkapi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gawkapi.h b/gawkapi.h
index 8bf3a08d..c708db67 100644
--- a/gawkapi.h
+++ b/gawkapi.h
@@ -827,7 +827,7 @@ r_make_string(const gawk_api_t *api, /* needed for emalloc */
result->str_value.len = length;
if (duplicate) {
- emalloc(cp, char *, length + 2, "r_make_string");
+ emalloc(cp, char *, length + 1, "r_make_string");
memcpy(cp, string, length);
cp[length] = '\0';
result->str_value.str = cp;