diff options
Diffstat (limited to 'util-linux/fdisk.c')
-rw-r--r-- | util-linux/fdisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 1bb3a9d..6a194fd 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c @@ -460,7 +460,7 @@ read_line(const char *prompt) line_buffer[--sz] = '\0'; line_ptr = line_buffer; - while (*line_ptr && !isgraph(*line_ptr)) + while (*line_ptr != '\0' && (unsigned char)*line_ptr <= ' ') line_ptr++; return *line_ptr; } |