X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=sbr%2Ffmt_compile.c;h=e857c7d9bc658d9efd0a7f678230c4b61a241739;hb=113043aa621e4ff98e543086abb754a8100bb850;hp=d3e5ea90c500cbc9fce5d85f43f17391d7aae2b1;hpb=d72ac27d644108db991fe5335b904368010ddcf8;p=mmh diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index d3e5ea9..e857c7d 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)