Subject: small bug in stock fvwm 2.0.46:style.c:698

From: Andrew Veliath <[email-masked]>
Date: Tue, 02 Dec 1997 14:00:42 -0500

-- in the parsing code for UseStyle (otherwise for a quoted word the
error message will be one character better).

Doesn't affect operation, just the error message.

Untested, but should be okay:

*** style.c.orig	Tue Dec  2 13:54:44 1997
--- style.c	Tue Dec  2 13:58:41 1997
***************
*** 695,701 ****
              {
                tmp=safemalloc(500);
                strcat(tmp,"UseStyle: ");
!               strncat(tmp,restofline-len,len);
                strcat(tmp," style not found!");
                fvwm_msg(ERR,"ProcessNewStyle",tmp);
                free(tmp);
--- 695,701 ----
              {
                tmp=safemalloc(500);
                strcat(tmp,"UseStyle: ");
!               strncat(tmp,restofline-len-(is_quoted?1:0),len);
                strcat(tmp," style not found!");
                fvwm_msg(ERR,"ProcessNewStyle",tmp);
                free(tmp);

--
Regards,
Andrew Veliath
[email-masked], [email-masked]
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm-workers" in the
body of a message to [email-masked].
To report problems, send mail to [email-masked].