From ef40109ea9d02813bf96d3a9819f51a52eb5631f Mon Sep 17 00:00:00 2001 From: Steven Dee Date: Wed, 30 Oct 2013 16:59:57 -0400 Subject: [PATCH] Fix hom_w calculation --- v/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v/main.c b/v/main.c index d3edc5ea8..82143c6e1 100644 --- a/v/main.c +++ b/v/main.c @@ -101,7 +101,7 @@ _main_getopt(c3_i argc, c3_c** argv) if ( u2_Host.ops_u.hom_c == 0 ) { c3_c* hom_c = getenv("HOME"); - c3_w hom_w = strlen(hom_c + 6); + c3_w hom_w = strlen(hom_c) + 6; if ( !hom_c ) { fprintf(stderr, "$URBIT_HOME or $HOME must be set\n");