diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-22 09:56:34 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-22 09:56:49 +0200 |
commit | 428a845b20fbee78925aa162c26ec4719a7aac0f (patch) | |
tree | 0c55155d2ebc0fc7008ff3fc95c1d55ff516f94f | |
parent | dffc329bb6746c16e580497dda5996ab6e3c9712 (diff) | |
download | fref-428a845b20fbee78925aa162c26ec4719a7aac0f.tar.gz |
Allocate correct size for fs
-rw-r--r-- | fref.lex | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -295,7 +295,7 @@ pf(char *fmt, ...) if(*p == '%' || *p == '*') n++; - if(!(fs = malloc(n))) + if(!(fs = malloc(sizeof(char *)*n))) err(1, "malloc"); /* |