X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8563731b02ce9d750806f6b1769af8b399d964e8..cc6d2b40ffd2126cff8384d2c62eee44dc7b1fe1:/sbr/fmt_compile.c diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index d3e5ea90..6baabdc7 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -7,7 +7,7 @@ #include #include -#include +#include #include #include @@ -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)