X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=direct.c;h=6237ce2e418d715c464cedab0813ff6a1842b7c0;hp=dc9747ba9174fd05d3bf61d3a21955aa00ab5fc2;hb=603c75134d7911c5c6a7af38da1327f3e713d583;hpb=6056c16bf5053addba1fec6ff821a0f435f0b3da diff --git a/direct.c b/direct.c index dc9747b..6237ce2 100644 --- a/direct.c +++ b/direct.c @@ -371,11 +371,12 @@ int d_incbin(void) // the "-d" option. if ((fd = open(string[tok[1]], _OPEN_INC)) < 0) { - for (i = 0; nthpath("RMACPATH", i, buf1) != 0; i++) + for(i=0; nthpath("RMACPATH", i, buf1)!=0; i++) { fd = strlen(buf1); - if (fd > 0 && buf1[fd - 1] != SLASHCHAR) // Append path char if necessary + // Append path char if necessary + if (fd > 0 && buf1[fd - 1] != SLASHCHAR) strcat(buf1, SLASHSTRING); strcat(buf1, string[tok[1]]); @@ -389,7 +390,6 @@ int d_incbin(void) allright: - size = lseek(fd, 0L, SEEK_END); pos = lseek(fd, 0L, SEEK_SET); chcheck(size);