diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-02-02 15:43:27 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-02-02 15:43:27 +0200 |
commit | a41dd1535e2c1306247deeaca3e7a173a54ff542 (patch) | |
tree | fdb52958e841c89c3c31dbc7d43e8963a7da135f /awkgram.c | |
parent | 9df2391a0914ca1404f9c8705bd1175733c2b21c (diff) | |
parent | c54a8ebdc993aa3bf259fa7ab85a0f077a70040c (diff) | |
download | egawk-a41dd1535e2c1306247deeaca3e7a173a54ff542.tar.gz egawk-a41dd1535e2c1306247deeaca3e7a173a54ff542.tar.bz2 egawk-a41dd1535e2c1306247deeaca3e7a173a54ff542.zip |
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -8738,7 +8738,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 |