aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fref.lex2
1 files changed, 1 insertions, 1 deletions
diff --git a/fref.lex b/fref.lex
index 2eaa19d..ddfa71d 100644
--- a/fref.lex
+++ b/fref.lex
@@ -295,7 +295,7 @@ pf(char *fmt, ...)
if(*p == '%' || *p == '*')
n++;
- if(!(fs = malloc(n)))
+ if(!(fs = malloc(sizeof(char *)*n)))
err(1, "malloc");
/*