diff -Naur ft2demos-2.5.1/src/ttdebug.c ft2demos-2.5.1.new/src/ttdebug.c --- ft2demos-2.5.1/src/ttdebug.c 2013-11-05 12:31:57.452397772 +0100 +++ ft2demos-2.5.1.new/src/ttdebug.c 2013-12-08 23:40:31.756506259 +0100 @@ -1905,11 +1905,11 @@ FT_Library_Version( library, &major, &minor, &patch ); - offset = snprintf( version_string, 64 + 1, + offset = snprintf( version_string, sizeof(version_string), "ttdebug (FreeType) %d.%d", major, minor ); if ( patch ) - offset = snprintf( version_string + offset, 64 + 1 - offset, + offset = snprintf( version_string + offset, sizeof(version_string) - offset, ".%d", patch ); }