summaryrefslogtreecommitdiff
path: root/interpret.h
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2016-07-06 21:31:22 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2016-07-06 21:31:22 -0400
commitce342a04922797cb53557178c54d32c4efafda16 (patch)
treed92372e30a992d950705e1f234bea5ac6405bd67 /interpret.h
parentf8424b236fabb881cc977b9e8e2e7c8debf56da0 (diff)
downloadgawk-ce342a04922797cb53557178c54d32c4efafda16.tar.gz
Document string termination in header files and remove no-longer-needed string termination logic in various places.
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/interpret.h b/interpret.h
index 106367f7..9d7b423e 100644
--- a/interpret.h
+++ b/interpret.h
@@ -135,13 +135,10 @@ top:
case Op_push_i:
m = pc->memory;
if (! do_traditional && (m->flags & INTLSTR) != 0) {
- char *orig, *trans, save;
+ char *orig, *trans;
- save = m->stptr[m->stlen];
- m->stptr[m->stlen] = '\0';
orig = m->stptr;
trans = dgettext(TEXTDOMAIN, orig);
- m->stptr[m->stlen] = save;
m = make_string(trans, strlen(trans));
} else
UPREF(m);