X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffmt_new.c;fp=sbr%2Ffmt_new.c;h=874129aaaaf056e044b3b6fe0c54332df6b91d55;hp=c3b1ea27f63beee73cf0aed19e8105e15f430069;hb=b78007de9802005825390bee71dfce2306b42519;hpb=10eff860a28b96582526eb739fd0a55441669938 diff --git a/sbr/fmt_new.c b/sbr/fmt_new.c index c3b1ea2..874129a 100644 --- a/sbr/fmt_new.c +++ b/sbr/fmt_new.c @@ -43,7 +43,7 @@ new_fs(char *form, char *def_form) if (fstat(fileno(fp), &st) == -1) { adios(EX_IOERR, form, "unable to stat format file"); } - formats = mh_xcalloc((size_t) st.st_size + 1, sizeof(char)); + formats = mh_xcalloc(st.st_size + 1, sizeof(char)); if (read(fileno(fp), formats, (int)st.st_size) != st.st_size) { adios(EX_IOERR, form, "error reading format file"); } @@ -60,7 +60,7 @@ new_fs(char *form, char *def_form) if (fstat(fileno(fp), &st) == -1) { adios(EX_IOERR, def_form, "unable to stat format file"); } - formats = mh_xcalloc((size_t) st.st_size + 1, sizeof(char)); + formats = mh_xcalloc(st.st_size + 1, sizeof(char)); if (read(fileno(fp), formats, (int)st.st_size) != st.st_size) { adios(EX_IOERR, def_form, "error reading format file"); }