sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 13cbb19adc79e567b122feecbc03eb8ff8a93054
parent 5c6a17ef206d9104b00d558c3eb0173927456b25
Author: sin <sin@2f30.org>
Date:   Fri Feb 14 15:11:06 +0000

Fix wrong length for sethostname()

This was messed up in the previous commit.

Diffstat:
hostname.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hostname.c b/hostname.c @@ -36,7 +36,7 @@ main(int argc, char *argv[]) eprintf("gethostname:"); puts(host); } else { - if (sethostname(argv[0], sz + 1) < 0) + if (sethostname(argv[0], strlen(argv[0])) < 0) eprintf("sethostname:"); }