openbsd-ports/x11/fvwm2/patches/patch-fvwm_builtins_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
481 B
Plaintext

$OpenBSD: patch-fvwm_builtins_c,v 1.1 2003/06/18 20:23:41 avsm Exp $
--- fvwm/builtins.c.orig Wed Jun 18 03:23:34 2003
+++ fvwm/builtins.c Wed Jun 18 03:23:52 2003
@@ -1472,7 +1472,7 @@ Bool ReadDecorFace(char *s, DecorFace *d
/* some variants of scanf do not increase the assign count when %n is used,
* so a return value of 1 is no error. */
- if (sscanf(s, "%256s%n", style, &offset) < 1)
+ if (sscanf(s, "%255s%n", style, &offset) < 1)
{
if (verbose)
{