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