diff options
author | Jeff Smith <whydoubt@yahoo.com> | 2007-03-21 10:41:03 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-03-21 10:41:03 -0400 |
commit | 5f83a1b542a1932a59299a45f36dff22268dca14 (patch) | |
tree | b0a7e59df3fd4526374113f82007f3e415a83f9d /src/cairo-output-stream.c | |
parent | bba7169805cec96b442d15241b0fdf8c38d0cd0e (diff) |
[cairo-output-stream] Remove use of strtol
Diffstat (limited to 'src/cairo-output-stream.c')
-rw-r--r-- | src/cairo-output-stream.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cairo-output-stream.c b/src/cairo-output-stream.c index df3ae4d43..71f2693e9 100644 --- a/src/cairo-output-stream.c +++ b/src/cairo-output-stream.c @@ -279,7 +279,7 @@ _cairo_output_stream_vprintf (cairo_output_stream_t *stream, const char *fmt, va_list ap) { char buffer[512], single_fmt[32]; - char *p, *end; + char *p; const char *f, *start; int length_modifier; @@ -305,10 +305,8 @@ _cairo_output_stream_vprintf (cairo_output_stream_t *stream, if (*f == '0') f++; - if (isdigit (*f)) { - strtol (f, &end, 10); - f = end; - } + while (isdigit (*f)) + f++; length_modifier = 0; if (*f == 'l') { |