2015-06-11 11:14:56 +02:00
|
|
|
Index: ft2demos-2.6/src/ttdebug.c
|
|
|
|
===================================================================
|
|
|
|
--- ft2demos-2.6.orig/src/ttdebug.c
|
|
|
|
+++ ft2demos-2.6/src/ttdebug.c
|
|
|
|
@@ -1910,11 +1910,11 @@
|
2013-12-11 08:36:25 +01:00
|
|
|
|
|
|
|
FT_Library_Version( library, &major, &minor, &patch );
|
|
|
|
|
2014-12-08 17:14:10 +01:00
|
|
|
- offset = snprintf( version_string, 64,
|
2013-12-11 08:36:25 +01:00
|
|
|
+ offset = snprintf( version_string, sizeof(version_string),
|
|
|
|
"ttdebug (FreeType) %d.%d",
|
|
|
|
major, minor );
|
|
|
|
if ( patch )
|
2015-06-11 11:14:56 +02:00
|
|
|
- offset = snprintf( version_string + offset, (size_t)( 64 - offset ),
|
|
|
|
+ offset = snprintf( version_string + offset, (size_t)( sizeof(version_string) - offset ),
|
2013-12-11 08:36:25 +01:00
|
|
|
".%d",
|
|
|
|
patch );
|
|
|
|
}
|