diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2022-04-01 16:05:42 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2022-04-01 16:05:42 +0300 |
commit | 32b09ecf9cdcc1dc131a704ad0fa6bf79580c151 (patch) | |
tree | 227782bbf183b128b4482a10c05b9c2a91a499a3 /profile.c | |
parent | dd56636139102f26aa6e2a69ceeeca4d0dcbdb94 (diff) | |
parent | 12bff814007d0cde8d0b08eaaf0bcfd385c668ac (diff) | |
download | egawk-32b09ecf9cdcc1dc131a704ad0fa6bf79580c151.tar.gz egawk-32b09ecf9cdcc1dc131a704ad0fa6bf79580c151.tar.bz2 egawk-32b09ecf9cdcc1dc131a704ad0fa6bf79580c151.zip |
Merge branch 'gawk-5.1-stable'
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -668,7 +668,7 @@ cleanup: case Op_K_print_rec: if (pc->opcode == Op_K_print_rec) // instead of `print $0', just `print' - tmp = strdup(""); + tmp = estrdup("", 0); else if (pc->redir_type != 0) { // Avoid turning printf("hello\n") into printf(("hello\n")) NODE *n = pp_top(); @@ -678,7 +678,7 @@ cleanup: && n->pp_str[n->pp_len - 1] == ')') { n = pp_pop(); - tmp = strdup(n->pp_str); + tmp = estrdup(n->pp_str, strlen(n->pp_str)); pp_free(n); } else tmp = pp_list(pc->expr_count, "()", ", "); |