Commit e330c40d authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

winex11: Fix overflow in remove_startup_notification.

parent cd6e9c38
...@@ -128,7 +128,7 @@ static void remove_startup_notification(Display *display, Window window) ...@@ -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++] = '\\';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment