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=");
|
pos = snprintf(message, sizeof(message), "remove: ID=");
|
||||||
message[pos++] = '"';
|
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] == '\\')
|
if (id[i] == '"' || id[i] == '\\')
|
||||||
message[pos++] = '\\';
|
message[pos++] = '\\';
|
||||||
|
|
Loading…
Reference in New Issue