diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-02-02 15:43:11 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-02-02 15:43:11 +0200 |
commit | ec480355cc6c93d36a0ae4b95018389455f11a8d (patch) | |
tree | fd16b2b603b6a20f3b65b45f87acbffd9f5cf80a /awkgram.y | |
parent | b2db54e6b9bebdce30dabce709ec4bcf4f6aa51e (diff) | |
parent | c54a8ebdc993aa3bf259fa7ab85a0f077a70040c (diff) | |
download | egawk-ec480355cc6c93d36a0ae4b95018389455f11a8d.tar.gz egawk-ec480355cc6c93d36a0ae4b95018389455f11a8d.tar.bz2 egawk-ec480355cc6c93d36a0ae4b95018389455f11a8d.zip |
Merge branch 'master' into feature/api-mpfr
Diffstat (limited to 'awkgram.y')
-rw-r--r-- | awkgram.y | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -6293,7 +6293,8 @@ set_profile_text(NODE *n, const char *str, size_t len) { if (do_pretty_print) { // extra byte in case need to add minus sign in negate_num - n->stptr = estrdup(str, len + 1); + // and another one for the \0 at the end + n->stptr = estrdup(str, len + 2); n->stptr[len] = '\0'; n->stlen = len; // Set STRCUR and n->stfmt for use when profiling |