fil! not filename! :)

SVN revision: 12882
This commit is contained in:
Carsten Haitzler 2005-01-11 02:54:07 +00:00
parent fb7f6e24c6
commit 314d82cc04
1 changed files with 4 additions and 4 deletions

View File

@ -143,12 +143,12 @@ source_fetch_file(char *fil, char *filname)
/* get the directory of the current file /* get the directory of the current file
* if we haven't already done so * if we haven't already done so
*/ */
if (!dir && strrchr (filname, '/')) if (!dir && strrchr(fil, '/'))
{ {
dir = mem_strdup(filname); dir = mem_strdup(fil);
slash = strrchr (dir, '/'); slash = strrchr(dir, '/');
*slash = '\0'; *slash = '\0';
dir_len = strlen (dir); dir_len = strlen(dir);
} }
l = pp - p + dir_len + 1; l = pp - p + dir_len + 1;