summaryrefslogtreecommitdiffstats
path: root/extra-functions.c
diff options
context:
space:
mode:
Diffstat (limited to 'extra-functions.c')
-rw-r--r--extra-functions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra-functions.c b/extra-functions.c
index b00f2deae..763098da3 100644
--- a/extra-functions.c
+++ b/extra-functions.c
@@ -23,7 +23,6 @@
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
-
#include <linux/input.h>
#include "bootloader.h"
@@ -93,11 +92,12 @@ int check_backup_name(int show_error) {
return 0; // A "0" (zero) means to use the current timestamp for the backup name
for (index=0; index<copy_size; index++) {
cur_char = (int)backup_name[index];
- if ((cur_char >= 48 && cur_char <= 57) || (cur_char >= 65 && cur_char <= 91) || cur_char == 93 || cur_char == 95 || (cur_char >= 97 && cur_char <= 123) || cur_char == 125 || cur_char == 45 || cur_char == 46) {
+ if (cur_char == 32 || (cur_char >= 48 && cur_char <= 57) || (cur_char >= 65 && cur_char <= 91) || cur_char == 93 || cur_char == 95 || (cur_char >= 97 && cur_char <= 123) || cur_char == 125 || cur_char == 45 || cur_char == 46) {
// These are valid characters
// Numbers
// Upper case letters
// Lower case letters
+ // Space
// and -_.{}[]
} else {
if (show_error)