Procházet zdrojové kódy

Fix building for GD32.

saybur před 2 roky
rodič
revize
d8039993b7
1 změnil soubory, kde provedl 1 přidání a 4 odebrání
  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)
     {