Merge pull request #72 from mrdomino/master

!!! Fix hom_w calculation
This commit is contained in:
cgyarvin 2013-10-30 14:51:14 -07:00
commit 395ddde229

View File

@ -101,7 +101,7 @@ _main_getopt(c3_i argc, c3_c** argv)
if ( u2_Host.ops_u.hom_c == 0 ) { if ( u2_Host.ops_u.hom_c == 0 ) {
c3_c* hom_c = getenv("HOME"); 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 ) { if ( !hom_c ) {
fprintf(stderr, "$URBIT_HOME or $HOME must be set\n"); fprintf(stderr, "$URBIT_HOME or $HOME must be set\n");