diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 836e62c88ae..4a047e2b0ed 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -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++] = '\\';