mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[HAL/x86]
Completely fix one of the overruns svn path=/trunk/; revision=53789
This commit is contained in:
parent
87d6daee6c
commit
ac92a8adf9
1 changed files with 1 additions and 1 deletions
|
@ -721,7 +721,7 @@ HalpDebugPciDumpBus(IN ULONG i,
|
|||
SubClassName += 5;
|
||||
p = strchr(SubClassName, '\r');
|
||||
Length = p - SubClassName;
|
||||
if (Length > sizeof(bSubClassName)) Length = sizeof(bSubClassName) - 1;
|
||||
if (Length >= sizeof(bSubClassName)) Length = sizeof(bSubClassName) - 1;
|
||||
strncpy(bSubClassName, SubClassName, Length);
|
||||
bSubClassName[Length] = '\0';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue