X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Ffmt_compile.c;h=6baabdc76ebbe91c9ca1c4be8ee3b46d4a49441c;hb=2ccd02143402aab6732ad1d2b84513949ddd7cb2;hp=d3e5ea90c500cbc9fce5d85f43f17391d7aae2b1;hpb=8563731b02ce9d750806f6b1769af8b399d964e8;p=mmh diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index d3e5ea9..6baabdc 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)