Explorar o código

Fix building for GD32.

saybur %!s(int64=2) %!d(string=hai) anos
pai
achega
d8039993b7
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      src/BlueSCSI_disk.cpp

+ 1 - 4
src/BlueSCSI_disk.cpp

@@ -624,10 +624,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)
     {