summaryrefslogtreecommitdiff
path: root/main/snprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/snprintf.c')
-rw-r--r--main/snprintf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/snprintf.c b/main/snprintf.c
index 9623a993b..41dce94f7 100644
--- a/main/snprintf.c
+++ b/main/snprintf.c
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: snprintf.c,v 1.37.2.3 2006/01/01 12:50:17 sniper Exp $ */
+/* $Id: snprintf.c,v 1.37.2.4 2006/01/24 20:59:46 helly Exp $ */
/* ====================================================================
* Copyright (c) 1995-1998 The Apache Group. All rights reserved.
@@ -1015,7 +1015,7 @@ static int format_converter(register buffy * odp, const char *fmt,
case 'n':
*(va_arg(ap, int *)) = cc;
- break;
+ goto skip_output;
/*
* Always extract the argument as a "char *" pointer. We
@@ -1096,6 +1096,7 @@ fmt_error:
if (adjust_width && adjust == LEFT && min_width > s_len)
PAD(min_width, s_len, pad_char);
}
+skip_output:
fmt++;
}
odp->nextb = sp;