Bugfix: %n doesn't count as a conversion, so

sscanf("abc", "ab%ncd", &i) returns EOF, not 0.
This commit is contained in:
David Schultz 2012-04-22 21:22:14 +00:00
parent 51300896cb
commit 01d2a7858e
2 changed files with 0 additions and 2 deletions

View File

@ -703,7 +703,6 @@ again: c = *fmt++;
break;
case 'n':
nconversions++;
if (flags & SUPPRESS) /* ??? */
continue;
if (flags & SHORTSHORT)

View File

@ -650,7 +650,6 @@ again: c = *fmt++;
break;
case 'n':
nconversions++;
if (flags & SUPPRESS) /* ??? */
continue;
if (flags & SHORTSHORT)