]> git.pld-linux.org Git - packages/libytnef.git/blob - libytnef-segv.patch
- x32 rebuild
[packages/libytnef.git] / libytnef-segv.patch
1 --- libytnef-1.5/ytnef.c.orig   2004-08-26 19:09:05.000000000 +0200
2 +++ libytnef-1.5/ytnef.c        2014-12-28 13:22:11.710584874 +0100
3 @@ -1328,7 +1328,7 @@
4  
5      comp_Prebuf.size = strlen(RTF_PREBUF);
6      comp_Prebuf.data = calloc(comp_Prebuf.size, 1);
7 -    strcpy(comp_Prebuf.data, RTF_PREBUF);
8 +    memcpy(comp_Prebuf.data, RTF_PREBUF, comp_Prebuf.size);
9  
10      src = p->data;
11      in = 0;
This page took 0.056635 seconds and 3 git commands to generate.