]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Update error message to align with int16 range (#1513)
authorCeline Lee <celine.y.lee@gmail.com>
Tue, 22 Mar 2022 11:15:25 +0000 (07:15 -0400)
committerGitHub <noreply@github.com>
Tue, 22 Mar 2022 11:15:25 +0000 (19:15 +0800)
I think this might be a minor typo-- since the conditional checks for `priority` to be in the signed int16 range, the error message should line up with that expected range.

SQUASHFS/squashfs-tools-4.4/squashfs-tools/sort.c

index 89df9e4385b7b8d8cf8961870b34b5c9376cee28..f50b4d27b6dffa2c9040fa81229e125c97454561 100644 (file)
@@ -297,7 +297,7 @@ int read_sort_file(char *filename, int source, char *source_path[])
                } else if((errno == ERANGE) ||
                                (priority < -32768 || priority > 32767)) {
                        ERROR("Sort file \"%s\", entry \"%s\" has priority "
-                               "outside range of -32767:32768.\n", filename,
+                               "outside range of -32768:32767.\n", filename,
                                line_buffer);
                        goto failed;
                }