aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-11-18 06:00:17 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-11-18 06:00:17 +0200
commite8b0cf14d975304166c58a2d04a2943ab821367a (patch)
tree6984492869ca192ee6a7fdf330e6867a5f61ae09 /awkgram.c
parentcc04afb329cea035d0d9b67cd3b677e06b2f3996 (diff)
downloadegawk-e8b0cf14d975304166c58a2d04a2943ab821367a.tar.gz
egawk-e8b0cf14d975304166c58a2d04a2943ab821367a.tar.bz2
egawk-e8b0cf14d975304166c58a2d04a2943ab821367a.zip
Audit use of stptr for NUL termination. Update doc before merge to master.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/awkgram.c b/awkgram.c
index 78839fe9..f552d2b9 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -5615,7 +5615,7 @@ split_comment(void)
if (p[l] == '\n' && p[l+1] == '\n') {
function_comment = comment_to_save;
n = function_comment->memory;
- function_comment->memory = make_str_node(p + l + 2, n->stlen - l - 2, 0);
+ function_comment->memory = make_string(p + l + 2, n->stlen - l - 2);
/* create program comment */
program_comment = bcalloc(Op_comment, 1, sourceline);
program_comment->source_file = comment_to_save->source_file;