소스 검색

Fix string comparison in source loc assert

Christoph Stelz 4 달 전
부모
커밋
b5e199890e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/ipc_debug.cpp

+ 2 - 2
src/ipc_debug.cpp

@@ -215,9 +215,9 @@ void debug_ipc_assert_equal_array(void *value, size_t size) {
 }
 
 void debug_ipc_assert_source_location(const char *source_file, const long int line_number) {
-    std::string fname(source_file);
+    std::string fname = source_file;
 
-    debug_ipc_assert_equal(fname);
+    debug_ipc_assert_equal_array(fname.data(), fname.size());
     debug_ipc_assert_equal(line_number);
 }