diff options
Diffstat (limited to 'toys/lsb/hostname.c')
-rw-r--r-- | toys/lsb/hostname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/lsb/hostname.c b/toys/lsb/hostname.c index daa60cc0..3c15b869 100644 --- a/toys/lsb/hostname.c +++ b/toys/lsb/hostname.c @@ -66,7 +66,7 @@ void hostname_main(void) snprintf(toybuf, sizeof(toybuf), "%s", h->h_name); } dot = toybuf+strcspn(toybuf, "."); - if (FLAG(s)) *dot = '\0'; + if (FLAG(s)) *dot = 0; xputs(FLAG(d) ? dot+1 : toybuf); } |