Fix possible overrun
[claws.git] / src / plugins / vcalendar / libical / libical / icalmime.c
index 1eeff365e41d52f90aca0ccc3a6a27d47202de52..2ed9bac26c390b605dd8d8d111387624c134b6c8 100644 (file)
@@ -234,7 +234,7 @@ line between the header and the previous boundary\?";
                snprintf((char*)temp,256,
                         "%s: %s",str,parts[i].header.error_text);
            } else {
-               strcpy((char*)temp,str);
+               strncpy((char*)temp,str, 255);
            }
 
            icalcomponent_add_property