cvs: /php4/ext/session mod_files.c /php4/ext/standard string.c
| From: | Sascha Schumann | Date: | Sun, 19 Dec 1999 02:13:02 +0000 |
| Subject: | cvs: /php4/ext/session mod_files.c /php4/ext/standard string.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-8162@lists.php.net to get a copy of this message | ||
sas Sat Dec 18 21:13:02 1999 EDT
Modified files:
/php4/ext/session mod_files.c
/php4/ext/standard string.c
Log:
Use workaround function for sprintf, if the return value of sprintf is needed
Index: php4/ext/session/mod_files.c
diff -u php4/ext/session/mod_files.c:1.21 php4/ext/session/mod_files.c:1.22
--- php4/ext/session/mod_files.c:1.21 Mon Dec 13 10:55:49 1999
+++ php4/ext/session/mod_files.c Sat Dec 18 21:12:31 1999
@@ -100,7 +100,7 @@
(strlen(data->basedir) + 2 * data->dirdepth + keylen + 5 + sizeof(FILE_PREFIX)))
return NULL;
p = key;
- n = sprintf(buf, "%s/", data->basedir);
+ n = zend_sprintf(buf, "%s/", data->basedir);
for(i = 0; i < data->dirdepth; i++) {
buf[n++] = *p++;
buf[n++] = DIR_DELIMITER;
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.76 php4/ext/standard/string.c:1.77
--- php4/ext/standard/string.c:1.76 Sat Dec 18 17:35:28 1999
+++ php4/ext/standard/string.c Sat Dec 18 21:12:31 1999
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.76 1999/12/18 22:35:28 zeev Exp $ */
+/* $Id: string.c,v 1.77 1999/12/19 02:12:31 sas Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -1607,7 +1607,7 @@
case '\v': *target++ = 'v'; break;
case '\b': *target++ = 'b'; break;
case '\f': *target++ = 'f'; break;
- default: target += sprintf(target, "%03o", (unsigned char)c);
+ default: target += zend_sprintf(target, "%03o", (unsigned char)c);
}
continue;
}