-int bf_write (BFile bf, zint no, int offset, int nbytes, const void *buf)
+int bf_write(BFile bf, zint no, int offset, int nbytes, const void *buf)
+{
+ int ret = bf_write2(bf, no, offset, nbytes, buf);
+
+ if (ret == -1)
+ {
+ zebra_exit("bf_write");
+ }
+ return ret;
+}
+
+int bf_write2(BFile bf, zint no, int offset, int nbytes, const void *buf)