forked from minhngoc25a/freetype2
fixing implementation bug in ft_mem_strcpyn
This commit is contained in:
parent
d112cf099b
commit
3a51afac36
|
@ -1,3 +1,9 @@
|
|||
2007-03-08 David Turner <david@freetype.org>
|
||||
|
||||
* src/base/ftutil.c (ft_mem_strcpyn): fix a silly bug that prevented
|
||||
the function to work properly, over-writing user-provided buffers in
|
||||
some cases. Doh !
|
||||
|
||||
2007-03-05 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* include/freetype/config/ftstdlib.h (ft_strstr): New wrapper
|
||||
|
|
|
@ -209,7 +209,10 @@
|
|||
FT_ULong size )
|
||||
{
|
||||
while ( size > 1 && *src != 0 )
|
||||
{
|
||||
*dst++ = *src++;
|
||||
size--;
|
||||
}
|
||||
|
||||
*dst = 0; /* always zero-terminate */
|
||||
|
||||
|
|
Loading…
Reference in New Issue