diff --git a/scheck.c b/scheck.c index 4888a10..927443a 100644 --- a/scheck.c +++ b/scheck.c @@ -14,7 +14,7 @@ extern void ifree P((char * p)); char * scheck(string, format) const char * const string; -const char * const format; +char * const format; { register char * fbuf; register const char * fp; @@ -22,12 +22,12 @@ const char * const format; register int c; register char * result; char dummy; - static char nada[1]; + static char nada; - result = nada; + result = &nada; if (string == NULL || format == NULL) return result; - fbuf = imalloc(2 * strlen(format) + 4); + fbuf = imalloc((int) (2 * strlen(format) + 4)); if (fbuf == NULL) return result; fp = format;