cvs: php4 /main snprintf.c spprintf.c
| From: | Marcus B�rger | Date: | Wed, 10 Apr 2002 13:02:53 +0000 |
| Subject: | cvs: php4 /main snprintf.c spprintf.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-11006@lists.php.net to get a copy of this message | ||
helly Wed Apr 10 09:02:53 2002 EDT
Modified files:
/php4/main snprintf.c spprintf.c
Log:
fix a warnig and an error (found by Sebastioan)
Index: php4/main/snprintf.c
diff -u php4/main/snprintf.c:1.11 php4/main/snprintf.c:1.12
--- php4/main/snprintf.c:1.11 Tue Apr 9 21:07:49 2002
+++ php4/main/snprintf.c Wed Apr 10 09:02:53 2002
@@ -123,7 +123,7 @@
do {
register u_wide_int new_magnitude = magnitude / 10;
- *--p = magnitude - new_magnitude * 10 + '0';
+ *--p = (char)(magnitude - new_magnitude * 10 + '0');
magnitude = new_magnitude;
}
while (magnitude);
Index: php4/main/spprintf.c
diff -u php4/main/spprintf.c:1.1 php4/main/spprintf.c:1.2
--- php4/main/spprintf.c:1.1 Tue Apr 9 21:09:22 2002
+++ php4/main/spprintf.c Wed Apr 10 09:02:53 2002
@@ -638,7 +638,7 @@
va_list ap;
va_start(ap, format);
- vspprintf(pbuf, max_len, format, ap);
+ cc = vspprintf(pbuf, max_len, format, ap);
va_end(ap);
return (cc);
}