Browse Source

Fix building for GD32.

saybur 2 năm trước cách đây
mục cha
commit
68133c9c65
1 tập tin đã thay đổi với 1 bổ sung4 xóa
  1. 1 4
      src/ZuluSCSI_disk.cpp

+ 1 - 4
src/ZuluSCSI_disk.cpp

@@ -636,10 +636,7 @@ int scsiDiskGetNextImageName(image_config_t &img, char *buf, size_t buflen)
     section[4] = '0' + target_idx;
 
     // sanity check: is provided buffer is long enough to store a filename?
-    if (buflen < MAX_FILE_PATH)
-    {
-        panic("scsiDiskGetNextImageName called with illegal buflen");
-    }
+    assert(buflen >= MAX_FILE_PATH);
 
     if (img.image_directory)
     {