- argh

Wed, 10 Dec 2014 19:26:13 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Wed, 10 Dec 2014 19:26:13 +0200
changeset 4
ec5387e121fa
parent 3
592845e6f9e8
child 5
146825d63b9a

- argh

sources/version.cpp file | annotate | diff | comparison | revisions
--- a/sources/version.cpp	Wed Dec 10 19:25:41 2014 +0200
+++ b/sources/version.cpp	Wed Dec 10 19:26:13 2014 +0200
@@ -46,9 +46,9 @@
 	if (buffer[0] == '\0')
 	{
 		if (strcmp (HG_BRANCH, "default") != 0)
-			snprintf (buffer, "%s-%s (%s)", version_string(), HG_NODE, HG_BRANCH);
+			snprintf (buffer, sizeof buffer, "%s-%s (%s)", version_string(), HG_NODE, HG_BRANCH);
 		else
-			snprintf (buffer, "%s-%s", version_string(), HG_NODE);
+			snprintf (buffer, sizeof buffer, "%s-%s", version_string(), HG_NODE);
 	}
 
 	return buffer;

mercurial