~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to awkgram.c

  • Committer: Arnold D. Robbins
  • Date: 2016-11-18 04:00:17 UTC
  • mto: (408.31.43)
  • mto: This revision was merged to the branch mainline in revision 727.
  • Revision ID: git-v1:e8b0cf14d975304166c58a2d04a2943ab821367a
Audit use of stptr for NUL termination. Update doc before merge to master.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5615
5615
                if (p[l] == '\n' && p[l+1] == '\n') {
5616
5616
                        function_comment = comment_to_save;
5617
5617
                        n = function_comment->memory;
5618
 
                        function_comment->memory = make_str_node(p + l + 2, n->stlen - l - 2, 0);
 
5618
                        function_comment->memory = make_string(p + l + 2, n->stlen - l - 2);
5619
5619
                        /* create program comment  */
5620
5620
                        program_comment = bcalloc(Op_comment, 1, sourceline);
5621
5621
                        program_comment->source_file = comment_to_save->source_file;