On Wed, 24 Dec 2008, Gilbert wrote:

 > That's strange, I pulled the default tarball a couple of days ago and here 
 > it is:

it's not in here either


 > Starting at line 1092:
 > void
 > SendHelperMessage(WScreen *scr, char type, int workspace, char *msg)
 > {
 >     char *buffer;
 >     int len;
 >     int i;
 >     char buf[16];
 > 
 >     if (!scr->flags.backimage_helper_launched) {
 >         return;
 >     }
 > 
 >     len = (msg ? strlen(msg) : 0) + (workspace >=0 ? 4 : 0) + 1 ;
 >     buffer = wmalloc(len+5);
 >     snprintf(buf, len, "%4i", len);
                ^^^^^^^^^^^^^^^^
                ^^^^^^^^^^^^^^^^

-    snprintf(buf, len, "%4i", len);
+    snprintf(buf, sizeof(buf), "%4i", len);


-- 
[-]

mkdir /nonexistent


-- 
To unsubscribe, send mail to [email protected].

Reply via email to