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 |