aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/android/setprop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/android/setprop.c b/toys/android/setprop.c
index c1356156..ec411f41 100644
--- a/toys/android/setprop.c
+++ b/toys/android/setprop.c
@@ -38,7 +38,7 @@ void setprop_main(void)
if (strstr(name, ".."))
error_exit("'..' is not allowed in a property name");
for (p = name; *p; ++p)
- if (!isalnum(*p) && !strchr("@_.-", *p))
+ if (!isalnum(*p) && !strchr(":@_.-", *p))
error_exit("invalid character '%c' in name '%s'", *p, name);
if (__system_property_set(name, value))