--- ft2demos-2.5.4/src/ttdebug.c 2014-05-11 12:50:48.876613439 +0200 +++ ft2demos-2.5.4.new/src/ttdebug.c 2014-12-08 16:39:09.744778704 +0100 @@ -1905,11 +1905,11 @@ FT_Library_Version( library, &major, &minor, &patch ); - offset = snprintf( version_string, 64, + offset = snprintf( version_string, sizeof(version_string), "ttdebug (FreeType) %d.%d", major, minor ); if ( patch ) - offset = snprintf( version_string + offset, 64 - offset, + offset = snprintf( version_string + offset, sizeof(version_string) - offset, ".%d", patch ); }