fix in sscanf: _count field was wrong
authorceriel <none@none>
Wed, 9 May 1990 13:31:36 +0000 (13:31 +0000)
committerceriel <none@none>
Wed, 9 May 1990 13:31:36 +0000 (13:31 +0000)
lang/cem/libcc/stdio/sscanf.c

index c0175e5..d1f0476 100644 (file)
@@ -18,7 +18,7 @@ int sscanf(va_alist)
                _tempfile._flags  = IO_READMODE + IO_UNBUFF;
                _tempfile._buf    = (unsigned char *) string;
                _tempfile._ptr    = (unsigned char *) string;
-               _tempfile._count  = 32767;
+               _tempfile._count  = strlen(string);
 
                retval = _doscanf (&_tempfile, format, ap);
        }