summaryrefslogtreecommitdiff
path: root/specifier.c
diff options
context:
space:
mode:
Diffstat (limited to 'specifier.c')
-rw-r--r--specifier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/specifier.c b/specifier.c
index a25f33a047..d8472e99ed 100644
--- a/specifier.c
+++ b/specifier.c
@@ -70,7 +70,7 @@ char *specifier_printf(const char *text, const Specifier table[], void *userdata
j = t - r;
k = strlen(w);
- if (!(n = new(char, j + k + (l - (f - text)) + 1))) {
+ if (!(n = new(char, j + k + l + 1))) {
free(r);
free(w);
return NULL;