[cairo-commit] src/cairo-output-stream.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Wed Mar 21 07:47:28 PDT 2007


 src/cairo-output-stream.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

New commits:
diff-tree 5f83a1b542a1932a59299a45f36dff22268dca14 (from bba7169805cec96b442d15241b0fdf8c38d0cd0e)
Author: Jeff Smith <whydoubt at yahoo.com>
Date:   Wed Mar 21 10:41:03 2007 -0400

    [cairo-output-stream] Remove use of strtol

diff --git a/src/cairo-output-stream.c b/src/cairo-output-stream.c
index df3ae4d..71f2693 100644
--- a/src/cairo-output-stream.c
+++ b/src/cairo-output-stream.c
@@ -279,7 +279,7 @@ _cairo_output_stream_vprintf (cairo_outp
 			      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_outp
 	if (*f == '0')
 	    f++;
 
-	if (isdigit (*f)) {
-	    strtol (f, &end, 10);
-	    f = end;
-	}
+	while (isdigit (*f))
+	    f++;
 
 	length_modifier = 0;
 	if (*f == 'l') {


More information about the cairo-commit mailing list