fix in sscanf: _count field was wrong
This commit is contained in:
parent
e13e0c1002
commit
6bfe1fb9a9
@ -18,7 +18,7 @@ int sscanf(va_alist)
|
|||||||
_tempfile._flags = IO_READMODE + IO_UNBUFF;
|
_tempfile._flags = IO_READMODE + IO_UNBUFF;
|
||||||
_tempfile._buf = (unsigned char *) string;
|
_tempfile._buf = (unsigned char *) string;
|
||||||
_tempfile._ptr = (unsigned char *) string;
|
_tempfile._ptr = (unsigned char *) string;
|
||||||
_tempfile._count = 32767;
|
_tempfile._count = strlen(string);
|
||||||
|
|
||||||
retval = _doscanf (&_tempfile, format, ap);
|
retval = _doscanf (&_tempfile, format, ap);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user