X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8563731b02ce9d750806f6b1769af8b399d964e8..e66e25ec491d0fb3df708000d8494b4d598f0263:/sbr/fmt_compile.c diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index d3e5ea90..e857c7d9 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -270,6 +270,7 @@ fmt_compile(char *fstring, struct format **fmt) * normal processing. */ i = strlen(fstring)/2 + 1; + if (i==1) i++; next_fp = formatvec = (struct format *)calloc ((size_t) i, sizeof(struct format)); if (next_fp == NULL)