openbsd-ports/x11/fvwm2/patches/patch-modules_FvwmGtk_FvwmGtk_c
avsm 96c73b8cd6 fix a couple of off-by-one errors in sscanf handling.
patches have been submitted and accepted upstream
pvalchev@ ok
2003-06-18 20:23:41 +00:00

13 lines
565 B
Plaintext

$OpenBSD: patch-modules_FvwmGtk_FvwmGtk_c,v 1.1 2003/06/18 20:23:41 avsm Exp $
--- modules/FvwmGtk/FvwmGtk.c.orig Wed Jun 18 03:24:21 2003
+++ modules/FvwmGtk/FvwmGtk.c Wed Jun 18 03:24:32 2003
@@ -349,7 +349,7 @@ process_message (unsigned long type,
case M_STRING:
SendUnlockNotification(fvwm_fd);
context = body[0]; /* this is tmp_win->w */
- sscanf ((char*) (&body[3]), "%128s %d", name, &button);
+ sscanf ((char*) (&body[3]), "%127s %d", name, &button);
widget = g_hash_table_lookup (widgets, name);
if (!widget)
{