Commit 805b878b authored by Linus Torvalds's avatar Linus Torvalds

From louis.zhuang@intel.com: missed field_width reset in vsscanf()

parent b0de9c76
......@@ -521,7 +521,7 @@ int vsscanf(const char * buf, const char * fmt, va_list args)
int num = 0;
int qualifier;
int base;
int field_width = -1;
int field_width;
int is_sign = 0;
while(*fmt && *str) {
......@@ -559,6 +559,7 @@ int vsscanf(const char * buf, const char * fmt, va_list args)
}
/* get field width */
field_width = -1;
if (isdigit(*fmt))
field_width = skip_atoi(&fmt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment