commit ae5935f8ea97c2fecbc95149b96377f71d8cb802
parent accc3f6a7b0793a41e08603b4d89a47aaf644050
Author: Colin Leroy <colin@colino.net>
Date: Thu, 8 Oct 2015 18:58:54 +0200
Fix possible overrun
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/vcalendar/libical/libical/icalmime.c b/src/plugins/vcalendar/libical/libical/icalmime.c
@@ -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