소스 검색

Fix write check

Christoph Stelz 3 달 전
부모
커밋
49b9b9800a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();
         }