summaryrefslogtreecommitdiffstats
path: root/extra-functions.c
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-26 16:07:14 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-26 16:07:14 +0200
commitb9d1c6d461d2c208dbcbcbb3458c02e99bac348a (patch)
tree9728506ef64ddc0ffa16ab43750d6f9b5e1bfd81 /extra-functions.c
parentAdd backup size checking (diff)
downloadandroid_bootable_recovery-b9d1c6d461d2c208dbcbcbb3458c02e99bac348a.tar
android_bootable_recovery-b9d1c6d461d2c208dbcbcbb3458c02e99bac348a.tar.gz
android_bootable_recovery-b9d1c6d461d2c208dbcbcbb3458c02e99bac348a.tar.bz2
android_bootable_recovery-b9d1c6d461d2c208dbcbcbb3458c02e99bac348a.tar.lz
android_bootable_recovery-b9d1c6d461d2c208dbcbcbb3458c02e99bac348a.tar.xz
android_bootable_recovery-b9d1c6d461d2c208dbcbcbb3458c02e99bac348a.tar.zst
android_bootable_recovery-b9d1c6d461d2c208dbcbcbb3458c02e99bac348a.zip
Diffstat (limited to '')
-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)