This commit is contained in:
Nathan Fisher 2024-02-10 01:51:54 -05:00
parent 9d72c50f34
commit 7076777277

View file

@ -101,7 +101,7 @@ char *archToString(Arch self) {
char *versionToString(Version *self) { char *versionToString(Version *self) {
char *buf, *temp; char *buf, *temp;
buf = calloc(75, sizeof(char)); buf = calloc(100, sizeof(char));
if (buf == NULL) return NULL; if (buf == NULL) return NULL;
temp = calloc(50, sizeof(char)); temp = calloc(50, sizeof(char));
if (temp == NULL) { if (temp == NULL) {
@ -148,7 +148,7 @@ char *versionToString(Version *self) {
break; break;
case GitRev: case GitRev:
snprintf( 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[0],
self->pr_data.git->hash[1], self->pr_data.git->hash[1],
self->pr_data.git->hash[2], self->pr_data.git->hash[2],