sources/version.cpp

changeset 4
ec5387e121fa
parent 3
592845e6f9e8
child 5
146825d63b9a
equal deleted inserted replaced
3:592845e6f9e8 4:ec5387e121fa
44 static char buffer[128] = {0}; 44 static char buffer[128] = {0};
45 45
46 if (buffer[0] == '\0') 46 if (buffer[0] == '\0')
47 { 47 {
48 if (strcmp (HG_BRANCH, "default") != 0) 48 if (strcmp (HG_BRANCH, "default") != 0)
49 snprintf (buffer, "%s-%s (%s)", version_string(), HG_NODE, HG_BRANCH); 49 snprintf (buffer, sizeof buffer, "%s-%s (%s)", version_string(), HG_NODE, HG_BRANCH);
50 else 50 else
51 snprintf (buffer, "%s-%s", version_string(), HG_NODE); 51 snprintf (buffer, sizeof buffer, "%s-%s", version_string(), HG_NODE);
52 } 52 }
53 53
54 return buffer; 54 return buffer;
55 } 55 }
56 56

mercurial