variable name change

This commit is contained in:
speedie 2023-05-08 18:16:50 +02:00
parent 04add5df1a
commit eb7a68f7ea

View file

@ -69,7 +69,7 @@ void readfile(void) {
} }
size_t len; size_t len;
static size_t cap = 0; static size_t c = 0;
char *l; char *l;
FILE *ef = fopen(listfile, "r"); FILE *ef = fopen(listfile, "r");
@ -89,9 +89,9 @@ void readfile(void) {
break; break;
} }
if (cap == listsize) { if (c == listsize) {
cap += 64 * sizeof(char*); c += 64 * sizeof(char*);
list = realloc(list, cap); list = realloc(list, c);
if (!list) die("spmenu: failed to realloc memory"); if (!list) die("spmenu: failed to realloc memory");
} }