Browse Source

Fix write check

Christoph Stelz 2 months ago
parent
commit
49b9b9800a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ipc_debug.cpp

+ 1 - 1
src/ipc_debug.cpp

@@ -157,7 +157,7 @@ void debug_ipc_assert_equal_vector(std::vector<T> value) {
     } else {
         size_t written = fwrite(value.data(), 1, array_byte_length, debug_ipc_file);
 
-        if (written != 1) {
+        if (written != array_byte_length) {
             printf("[IPCDBG] Could not write enough bytes. Error: %s\n", strerror(errno));
             endless_loop();
         }