sources/version.cpp

branch
protocol5
changeset 106
7b156b764d11
parent 88
08ccaf26cffd
child 109
e4966d7e615d
--- a/sources/version.cpp	Sat Jan 09 02:35:00 2016 +0200
+++ b/sources/version.cpp	Sat Jan 09 17:41:21 2016 +0200
@@ -45,14 +45,14 @@
 #ifdef HG_TAG
 	return HG_TAG;
 #else
-	static char buffer[128] = {0};
+	static char buffer[256] = {0};
 
 	if (buffer[0] == '\0')
 	{
 		if (strcmp (HG_BRANCH, "default") != 0)
-			snprintf (buffer, sizeof buffer, "%s-%s (%s)", version_string(), HG_NODE, HG_BRANCH);
+			sprintf (buffer, "%s-%s (%s)", version_string(), HG_NODE, HG_BRANCH);
 		else
-			snprintf (buffer, sizeof buffer, "%s-%s", version_string(), HG_NODE);
+			sprintf (buffer, "%s-%s", version_string(), HG_NODE);
 	}
 
 	return buffer;

mercurial