sources/version.cpp

changeset 88
08ccaf26cffd
parent 77
32ef969adeed
child 109
e4966d7e615d
--- a/sources/version.cpp	Thu Jul 23 00:16:47 2015 +0300
+++ b/sources/version.cpp	Thu Jul 23 01:52:04 2015 +0300
@@ -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