forked from pool/freetype2
7e85406f7e
I reverted it in factory, this needs to go through staging OBS-URL: https://build.opensuse.org/request/show/210479 OBS-URL: https://build.opensuse.org/package/show/M17N/freetype2?expand=0&rev=83
18 lines
772 B
Diff
18 lines
772 B
Diff
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 );
|
|
}
|