summaryrefslogtreecommitdiff
path: root/str.c
diff options
context:
space:
mode:
authorLarry Wall <lwall@netlabs.com>1993-02-04 22:50:33 +0000
committerLarry Wall <lwall@netlabs.com>1993-02-04 22:50:33 +0000
commite334a159a5616cab575044bafaf68f75b7bb3a16 (patch)
tree47369293eb7417e5322f7fe46e1a1cfc0d9c69ef /str.c
parent514dae0dba791ec01681adb3b3946a7646e146b3 (diff)
downloadperl-4.0.36.tar.gz
perl 4.0 patch 36: (combined patch)perl-4.0.36
Since Ed Barton sent me a patch for the malignent form of "Malformed cmd links", I finally broke down and made a patch for the various other little things that have been accumulating on version 4.
Diffstat (limited to 'str.c')
-rw-r--r--str.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/str.c b/str.c
index 4b597ccd51..8af06ad1a8 100644
--- a/str.c
+++ b/str.c
@@ -863,11 +863,10 @@ screamer:
bp = buf;
while ((i = getc(fp)) != EOF && (*bp++ = i) != newline && bp < bpe) ;
- *bp = '\0';
if (append)
- str_cat(str, buf);
+ str_ncat(str, buf, bp - buf);
else
- str_set(str, buf);
+ str_nset(str, buf, bp - buf);
if (i != EOF /* joy */
&&
(i != newline