diff options
author | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2016-07-06 21:31:22 -0400 |
---|---|---|
committer | Andrew J. Schorr <aschorr@telemetry-investments.com> | 2016-07-06 21:31:22 -0400 |
commit | ce342a04922797cb53557178c54d32c4efafda16 (patch) | |
tree | d92372e30a992d950705e1f234bea5ac6405bd67 /interpret.h | |
parent | f8424b236fabb881cc977b9e8e2e7c8debf56da0 (diff) | |
download | egawk-ce342a04922797cb53557178c54d32c4efafda16.tar.gz egawk-ce342a04922797cb53557178c54d32c4efafda16.tar.bz2 egawk-ce342a04922797cb53557178c54d32c4efafda16.zip |
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.h | 5 |
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); |