mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 06:21:23 +00:00
[USETUP]
- Fix potential buffer overflow svn path=/trunk/; revision=64529
This commit is contained in:
parent
1282829615
commit
2c4c58547d
1 changed files with 3 additions and 3 deletions
|
@ -166,12 +166,12 @@ DrawFileSystemList(
|
|||
if (Item->FileSystem)
|
||||
{
|
||||
if (Item->QuickFormat)
|
||||
sprintf(Buffer, MUIGetString(STRING_FORMATDISK1), Item->FileSystem);
|
||||
snprintf(Buffer, sizeof(Buffer), MUIGetString(STRING_FORMATDISK1), Item->FileSystem);
|
||||
else
|
||||
sprintf(Buffer, MUIGetString(STRING_FORMATDISK2), Item->FileSystem);
|
||||
snprintf(Buffer, sizeof(Buffer), MUIGetString(STRING_FORMATDISK2), Item->FileSystem);
|
||||
}
|
||||
else
|
||||
sprintf(Buffer, MUIGetString(STRING_KEEPFORMAT));
|
||||
snprintf(Buffer, sizeof(Buffer), MUIGetString(STRING_KEEPFORMAT));
|
||||
|
||||
if (ListEntry == &List->Selected->ListEntry)
|
||||
CONSOLE_SetInvertedTextXY(List->Left,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue