httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Victor J. Orlikowski" <...@raleigh.ibm.com>
Subject [PATCH] Clean up a compiler error
Date Mon, 26 Jun 2000 20:55:46 GMT
xlC complains (rightly) that the string is straddling a newline. This fixes
that.

Index: src/lib/apr/lib/apr_cpystrn.c
===================================================================
RCS file: /cvs/apache/apache-2.0/src/lib/apr/lib/apr_cpystrn.c,v
retrieving revision 1.23
diff -u -r1.23 apr_cpystrn.c
--- apr_cpystrn.c 2000/06/22 00:35:57 1.23
+++ apr_cpystrn.c 2000/06/26 20:47:35
@@ -249,8 +249,8 @@
 {
     char *sdup;
     if (!(sdup = (char *) malloc(strlen(str) + 1))) {
-        ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL,
"Ouch!
- Out of memory in our strdup()!");
+        ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL,
+                     "Ouch! Out of memory in our strdup()!");
         return NULL;
     }
     sdup = strcpy(sdup, str);



Mime
View raw message