mescc: Support binutils 2.25: vsscanf: Skip `l'.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 17 Jun 2018 07:26:34 +0000 (09:26 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 17 Jun 2018 07:26:34 +0000 (09:26 +0200)
* lib/libc+tcc.c (vsscanf): Skip `l'.

lib/libc+tcc.c

index b3e2bb3a4d43869a70b88bc15e0aee59a2d43365..65195bfa373ff3618808b207af9b7d6ae9fc59dd 100644 (file)
@@ -819,6 +819,8 @@ vsscanf (char const *s, char const *template, va_list ap)
       {
         t++;
         char c = *t;
+        if (c == 'l')
+          c = *++t;
         switch (c)
           {
           case '%': {p++; break;}