mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
c.lib 1.181 (26.10.2004)
- The scanf() family now always returns the number of assignments made unless an error occured or an EOF was hit during conversion before the first assignment could be made. - strtok() did not terminate properly if the last token in the string did not end with a separator character but with a '\0' byte. Fixed. - The directory scanning functions opendir/closedir did not get the global directory data tracking data structure initialized which later led to Enforcer hits and maybe trashed memory. Fixed. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14761 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_vfscanf.c,v 1.3 2004-10-22 10:57:53 obarthel Exp $
|
||||
* $Id: stdio_vfscanf.c,v 1.4 2004-10-26 16:25:03 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -1577,8 +1577,7 @@ __vfscanf(FILE *stream, const char *format, va_list arg)
|
||||
}
|
||||
}
|
||||
|
||||
if(num_conversions > 0)
|
||||
result = num_assignments;
|
||||
result = num_assignments;
|
||||
|
||||
out:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user