mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:00:56 +00:00
winex11: Fix overflow in remove_startup_notification.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
cd6e9c38e4
commit
e330c40df9
|
@ -128,7 +128,7 @@ static void remove_startup_notification(Display *display, Window window)
|
|||
|
||||
pos = snprintf(message, sizeof(message), "remove: ID=");
|
||||
message[pos++] = '"';
|
||||
for (i = 0; id[i] && pos < sizeof(message) - 2; i++)
|
||||
for (i = 0; id[i] && pos < sizeof(message) - 3; i++)
|
||||
{
|
||||
if (id[i] == '"' || id[i] == '\\')
|
||||
message[pos++] = '\\';
|
||||
|
|
Loading…
Reference in a new issue