summaryrefslogtreecommitdiff
path: root/tests/gd
diff options
context:
space:
mode:
authorNathanael Jones <nathanael.jones@gmail.com>2015-01-07 02:10:46 -0500
committerNathanael Jones <nathanael.jones@gmail.com>2015-01-07 02:10:46 -0500
commita24740751cd74cc48547b6c0b044987e7b6757c4 (patch)
tree68d640554385957c10ff636e724f654ad6c76282 /tests/gd
parent032431602de1607083a084315b4421214cab80b6 (diff)
downloadlibgd-a24740751cd74cc48547b6c0b044987e7b6757c4.tar.gz
Use sprintf instead of snprintf to be C89 compliant.
Diffstat (limited to 'tests/gd')
-rw-r--r--tests/gd/gd_versiontest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gd/gd_versiontest.c b/tests/gd/gd_versiontest.c
index 3cb5d7b..1aa1a67 100644
--- a/tests/gd/gd_versiontest.c
+++ b/tests/gd/gd_versiontest.c
@@ -13,7 +13,7 @@ int main()
gdTestAssert(GD_RELEASE_VERSION == gdReleaseVersion());
gdTestAssert(strcmp(GD_EXTRA_VERSION, gdExtraVersion()) == 0);
- snprintf(buffer, sizeof(buffer), "%d.%d.%d%s", GD_MAJOR_VERSION, GD_MINOR_VERSION,
+ sprintf(buffer, "%d.%d.%d%s", GD_MAJOR_VERSION, GD_MINOR_VERSION,
GD_RELEASE_VERSION, GD_EXTRA_VERSION);
gdTestAssert(strcmp(GD_VERSION_STRING, gdVersionString()) == 0);