mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 12:05:47 +08:00
* fhandler_proc.cc (format_proc_partitions): Express length in WCHAR
size.
This commit is contained in:
parent
bb8216a114
commit
8a5e2a62da
@ -1,3 +1,8 @@
|
|||||||
|
2011-04-02 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* fhandler_proc.cc (format_proc_partitions): Express length in WCHAR
|
||||||
|
size.
|
||||||
|
|
||||||
2011-04-02 Corinna Vinschen <corinna@vinschen.de>
|
2011-04-02 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* autoload.cc (GetExtendedTcpTable): Remove.
|
* autoload.cc (GetExtendedTcpTable): Remove.
|
||||||
|
@ -1143,7 +1143,7 @@ format_proc_partitions (void *, char *&destbuf)
|
|||||||
|
|
||||||
restart = FALSE;
|
restart = FALSE;
|
||||||
/* ... and check for a "Harddisk[0-9]*" entry. */
|
/* ... and check for a "Harddisk[0-9]*" entry. */
|
||||||
if (dbi->ObjectName.Length < 18
|
if (dbi->ObjectName.Length < 9 * sizeof (WCHAR)
|
||||||
|| wcsncasecmp (dbi->ObjectName.Buffer, L"Harddisk", 8) != 0
|
|| wcsncasecmp (dbi->ObjectName.Buffer, L"Harddisk", 8) != 0
|
||||||
|| !iswdigit (dbi->ObjectName.Buffer[8]))
|
|| !iswdigit (dbi->ObjectName.Buffer[8]))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user