winex11: Fix overflow in remove_startup_notification.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Alex Henrie 2016-01-18 23:52:10 -07:00 committed by Alexandre Julliard
parent cd6e9c38e4
commit e330c40df9
1 changed files with 1 additions and 1 deletions

View File

@ -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++] = '\\';