X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=expr.c;fp=expr.c;h=63d63ae2552e72f6fdf6dc77ee62fcc02decaa96;hp=3a23e6e3cf68d4949ef1372ca98da1defecac7f6;hb=01dbdb3508711b3e9283fb21a65e9e7a7b8164d2;hpb=c38505ee4b2a0de59926107e52fb8bb84041a0e4 diff --git a/expr.c b/expr.c index 3a23e6e..63d63ae 100644 --- a/expr.c +++ b/expr.c @@ -183,17 +183,17 @@ int expr1(void) for(i=0; nthpath("RMACPATH", i, buf1)!= 0; i++) { fd = strlen(buf1); - + // Append path char if necessary if ((fd > 0) && (buf1[fd - 1] != SLASHCHAR)) strcat(buf1, SLASHSTRING); - + strcat(buf1, string[*tok]); - + if ((fd = open(buf1, _OPEN_INC)) >= 0) goto allright; } - + return error("cannot open: \"%s\"", string[tok[1]]); }