From 380ee87e800e44b5e930d784dfb8aeadddf637f3 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 5 Jan 2018 16:27:19 -0300 Subject: Fixed problem with missing uninitialized last byte on waveform trip, closes #15316 --- drivers/windows/file_access_windows.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/windows/file_access_windows.cpp') diff --git a/drivers/windows/file_access_windows.cpp b/drivers/windows/file_access_windows.cpp index 409ca52ae0..dbffac8ebd 100644 --- a/drivers/windows/file_access_windows.cpp +++ b/drivers/windows/file_access_windows.cpp @@ -190,6 +190,7 @@ uint8_t FileAccessWindows::get_8() const { uint8_t b; if (fread(&b, 1, 1, f) == 0) { check_errors(); + b = '\0'; }; return b; -- cgit v1.2.3