From 3670e28a086760939b01cb76c814f9b8dd6cbea4 Mon Sep 17 00:00:00 2001 From: Debian Games Team Date: Fri, 4 Jan 2019 20:07:05 +0000 Subject: [PATCH] a32b967f1341 # HG changeset patch # User nemo # Date 1544721133 18000 # Node ID a32b967f13412b090e96bfb83ea1af3469fca389 # Parent e8723f97324c09409c2b9bd35e0e2573b2918abd This seems to be all that was needed for bug #719 Gbp-Pq: Name a32b967f1341.patch --- project_files/hwc/rtl/fileio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/project_files/hwc/rtl/fileio.c b/project_files/hwc/rtl/fileio.c index 0965423..fee7a1d 100644 --- a/project_files/hwc/rtl/fileio.c +++ b/project_files/hwc/rtl/fileio.c @@ -186,7 +186,8 @@ void fpcrtl_blockRead__vars(File f, void *buf, Integer count, Integer *result) { */ void fpcrtl_blockWrite__vars(File f, const void *buf, Integer count, Integer *result) { - assert(0); + assert(f->record_len > 0); + *result = fwrite(buf, f->record_len, count, f->fp); } bool fpcrtl_directoryExists(string255 dir) { -- 2.30.2