2011-10-17 [mones] 3.7.10cvs34
[claws.git] / src / procmsg.c
index d2f9443dc9e27af7d293d1de7c4a01b139308a68..30ca024f8b3d8809e06e476b96de2f9a2d017218 100644 (file)
@@ -1135,7 +1135,7 @@ void procmsg_print_message(MsgInfo *msginfo, const gchar *cmdline)
        g_free(prtmp);
 
        g_strchomp(buf);
-       if (buf[strlen(buf) - 1] != '&') strcat(buf, "&");
+       if (buf[strlen(buf) - 1] != '&') strncat(buf, "&", sizeof(buf));
        if (system(buf) == -1)
                g_warning("system(%s) failed.", buf);
 }