Module: wine Branch: master Commit: e330c40df90c60845d3f62662a8fe738e4c78fac URL: http://source.winehq.org/git/wine.git/?a=commit;h=e330c40df90c60845d3f62662a...
Author: Alex Henrie alexhenrie24@gmail.com Date: Mon Jan 18 23:52:10 2016 -0700
winex11: Fix overflow in remove_startup_notification.
Signed-off-by: Alex Henrie alexhenrie24@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/winex11.drv/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index 836e62c..4a047e2 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++] = '\';