Mail Archives: djgpp/1996/04/18/20:33:19
This is a multi-part message in MIME format.
--------------51196FFB7D30
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I found a bug in FSDB. This bug occours only, when specifying
more than one directory for searching the source files, either
with the environment variable or in the command line.
This bug is in file 'unassmbl.c' in function 'cache_fopen'. I include
here a patch, which should work.
Robert
--
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post: Am Berg 3, D-09573 Dittmannsdorf *
* e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE *
* WWW: http://www.tu-chemnitz.de/~rho *
*****************************************************************
--------------51196FFB7D30
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="unassmbl.dif"
*** i:unassmbl.c Thu Mar 30 08:00:12 1995
--- unassmbl.c Thu Apr 18 14:44:04 1996
***************
*** 938,944 ****
while (f == NULL && s && *s)
{
t = index (s, ';');
! l = t ? t - u - 1 : strlen (s);
strncpy (u, s, l);
if (l > 0 && u[l - 1] != '/' && u[l - 1] != '\\')
u[l++] = '/';
--- 938,944 ----
while (f == NULL && s && *s)
{
t = index (s, ';');
! l = t ? t - s : strlen (s);
strncpy (u, s, l);
if (l > 0 && u[l - 1] != '/' && u[l - 1] != '\\')
u[l++] = '/';
***************
*** 946,951 ****
--- 946,952 ----
strcat (u, name);
f = myfopen1 (u);
s = t;
+ if (s) s++;
}
#endif
return f;
--------------51196FFB7D30--
- Raw text -