summaryrefslogtreecommitdiff
path: root/mysys/my_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'mysys/my_error.c')
-rw-r--r--mysys/my_error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mysys/my_error.c b/mysys/my_error.c
index 562b192b24d..6887126e6ec 100644
--- a/mysys/my_error.c
+++ b/mysys/my_error.c
@@ -65,6 +65,8 @@ int my_error(int nr,myf MyFlags, ...)
/* Skipp if max size is used (to be compatible with printf) */
while (isdigit(*tpos) || *tpos == '.' || *tpos == '-')
tpos++;
+ if (*tpos == 'l') /* Skipp 'l' argument */
+ *tpos++;
if (*tpos == 's') /* String parameter */
{
par = va_arg(ap, char *);