Fix possible overrun
authorColin Leroy <colin@colino.net>
Thu, 8 Oct 2015 16:58:54 +0000 (18:58 +0200)
committerColin Leroy <colin@colino.net>
Thu, 8 Oct 2015 16:58:54 +0000 (18:58 +0200)
src/plugins/vcalendar/libical/libical/icalmime.c

index 1eeff36..2ed9bac 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