dougm 01/06/20 12:50:31
Modified: strings apr_strings.c
Log:
make termination of apr_pstrcat-ed string a bit faster (from jeff trawick)
Revision Changes Path
1.15 +2 -1 apr/strings/apr_strings.c
Index: apr_strings.c
===================================================================
RCS file: /home/cvs/apr/strings/apr_strings.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- apr_strings.c 2001/06/19 20:40:22 1.14
+++ apr_strings.c 2001/06/20 19:50:29 1.15
@@ -130,7 +130,6 @@
res = (char *) apr_palloc(a, len + 1);
cp = res;
- *(cp + len) = '\0';
/* Pass two --- copy the argument strings into the result space */
@@ -145,6 +144,8 @@
va_end(adummy);
/* Return the result string */
+
+ *cp = '\0';
return res;
}