summaryrefslogtreecommitdiffstats
path: root/reboot
diff options
context:
space:
mode:
Diffstat (limited to 'reboot')
-rw-r--r--reboot/reboot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/reboot/reboot.c b/reboot/reboot.c
index 007dfbaa4..f0cf40c89 100644
--- a/reboot/reboot.c
+++ b/reboot/reboot.c
@@ -56,6 +56,7 @@ int main(int argc, char *argv[])
56 56
57 if (argc > optind) 57 if (argc > optind)
58 optarg = argv[optind]; 58 optarg = argv[optind];
59 if (!optarg || !optarg[0]) optarg = "shell";
59 60
60 prop_len = snprintf(property_val, sizeof(property_val), "%s,%s", cmd, optarg); 61 prop_len = snprintf(property_val, sizeof(property_val), "%s,%s", cmd, optarg);
61 if (prop_len >= sizeof(property_val)) { 62 if (prop_len >= sizeof(property_val)) {