cvs: php4 /ext/standard string.c
| From: | Stanislav Malyshev | Date: | Mon, 17 Jul 2000 10:22:30 +0000 |
| Subject: | cvs: php4 /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-784@lists.php.net to get a copy of this message | ||
stas Mon Jul 17 03:22:30 2000 EDT
Modified files:
/php4/ext/standard string.c
Log:
Fix crash in stripcslashes("") (#5628)
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.135 php4/ext/standard/string.c:1.136
--- php4/ext/standard/string.c:1.135 Sun Jul 9 12:33:19 2000
+++ php4/ext/standard/string.c Mon Jul 17 03:22:30 2000
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.135 2000/07/09 19:33:19 eschmid Exp $ */
+/* $Id: string.c,v 1.136 2000/07/17 10:22:30 stas Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -1617,7 +1617,10 @@
*target++=*source;
}
}
- *target='\0';
+
+ if(nlen != 0) {
+ *target='\0';
+ }
*len = nlen;
}