]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
remove '=' from reserved space check (#1753)
authorShatteredMINT <109857525+ShatteredMINT@users.noreply.github.com>
Mon, 25 Jul 2022 02:46:07 +0000 (04:46 +0200)
committerGitHub <noreply@github.com>
Mon, 25 Jul 2022 02:46:07 +0000 (10:46 +0800)
removes the (misplaced) '=' in the check of the configured reserved space in the 'on_part_cfg_ok' function.
This caused #1752

LinuxGUI/Ventoy2Disk/GTK/ventoy_gtk.c

index 77096a117663ab761bf72e58c4e5ce386809decb..a1e81988126d1a33409d13d2931554f1b8fa2b59 100644 (file)
@@ -936,7 +936,7 @@ void on_part_cfg_ok(GtkWidget *widget, gpointer data)
 
         for (pos = input; *pos; pos++)
         {
-            if (*pos < '0' || *pos >= '9')
+            if (*pos < '0' || *pos > '9')
             {
                 msgbox(GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "STR_SPACE_VAL_INVALID");
                 return;