Because
This commit is contained in:
parent
9d72c50f34
commit
7076777277
1 changed files with 2 additions and 2 deletions
4
semver.c
4
semver.c
|
@ -101,7 +101,7 @@ char *archToString(Arch self) {
|
|||
char *versionToString(Version *self) {
|
||||
char *buf, *temp;
|
||||
|
||||
buf = calloc(75, sizeof(char));
|
||||
buf = calloc(100, sizeof(char));
|
||||
if (buf == NULL) return NULL;
|
||||
temp = calloc(50, sizeof(char));
|
||||
if (temp == NULL) {
|
||||
|
@ -148,7 +148,7 @@ char *versionToString(Version *self) {
|
|||
break;
|
||||
case GitRev:
|
||||
snprintf(
|
||||
temp, 30, "_git_%c%c%c%c%c%c%c.%li-%s",
|
||||
temp, 50, "_git_%c%c%c%c%c%c%c.%li-%s",
|
||||
self->pr_data.git->hash[0],
|
||||
self->pr_data.git->hash[1],
|
||||
self->pr_data.git->hash[2],
|
||||
|
|
Loading…
Add table
Reference in a new issue