diff options
author | Marcus Boerger <helly@php.net> | 2002-04-10 13:02:53 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-04-10 13:02:53 +0000 |
commit | 4e1a645ab01fb53a47bd1cb80b5e38b658eded25 (patch) | |
tree | 204880201d8c16fe9cf3ee48fd4713f7178d3b79 | |
parent | 1f847267e729d6496fa1b491c6299afd45225c5c (diff) | |
download | php-git-4e1a645ab01fb53a47bd1cb80b5e38b658eded25.tar.gz |
fix a warnig and an error (found by Sebastioan)
-rw-r--r-- | main/snprintf.c | 2 | ||||
-rw-r--r-- | main/spprintf.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/main/snprintf.c b/main/snprintf.c index 71d1fcc94f..3d26318429 100644 --- a/main/snprintf.c +++ b/main/snprintf.c @@ -123,7 +123,7 @@ char * 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); diff --git a/main/spprintf.c b/main/spprintf.c index 6bc1330d3f..f6878f3c54 100644 --- a/main/spprintf.c +++ b/main/spprintf.c @@ -638,7 +638,7 @@ int spprintf(char **pbuf, size_t max_len, const char *format, ...) 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); } |