Change 26781 by [EMAIL PROTECTED] on 2006/01/11 12:11:03
Gisle notes that SvRTRIM should also write a new '\0' at the end.
Affected files ...
... //depot/perl/mg.c#401 edit
Differences ...
==== //depot/perl/mg.c#401 (text) ====
Index: perl/mg.c
--- perl/mg.c#400~26779~ 2006-01-11 01:52:18.000000000 -0800
+++ perl/mg.c 2006-01-11 04:11:03.000000000 -0800
@@ -647,6 +647,7 @@
while (len > 0 && isSPACE(p[len-1])) \
--len; \
SvCUR_set(sv, len); \
+ p[len] = '\0'; \
} STMT_END
int
End of Patch.
