aboutsummaryrefslogtreecommitdiff
path: root/lib/mprintf.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-14 06:06:15 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-14 06:06:15 +0000
commitf35b6e90f55dd072af42eaa0f003be04328fe1d9 (patch)
treea20909346b3c0eb07adfd2ae9aaaaecf3c15d4e3 /lib/mprintf.c
parentb49565308f6f2afe8ab7a193740653eced0b3892 (diff)
corrected dubious use of the same variable twice in a function call,
gcc 3.0 warned about it
Diffstat (limited to 'lib/mprintf.c')
-rw-r--r--lib/mprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mprintf.c b/lib/mprintf.c
index 1bf9a6e72..9d446070c 100644
--- a/lib/mprintf.c
+++ b/lib/mprintf.c
@@ -446,7 +446,7 @@ static int dprintf_Pass1(char *format, va_stack_t *vto, char **endpos, va_list a
case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
flags |= FLAGS_WIDTH;
- width = strtol(--fmt, &fmt, 10);
+ width = strtol(fmt-1, &fmt, 10);
break;
case '*': /* Special case */
flags |= FLAGS_WIDTHPARAM;