1 | /* |
1 | /* |
2 | * static char *rcsid_porting_c = |
2 | * static char *rcsid_porting_c = |
3 | * "$Id: porting.c,v 1.1 2006/02/03 07:11:39 root Exp $"; |
3 | * "$Id: porting.c,v 1.2 2006/05/11 18:37:52 root Exp $"; |
4 | */ |
4 | */ |
5 | |
5 | |
6 | /* |
6 | /* |
7 | CrossFire, A Multiplayer game for X-windows |
7 | CrossFire, A Multiplayer game for X-windows |
8 | |
8 | |
… | |
… | |
612 | struct stat statbuf; |
612 | struct stat statbuf; |
613 | |
613 | |
614 | if (!filename || !*filename) |
614 | if (!filename || !*filename) |
615 | return; |
615 | return; |
616 | strcpy (buf, filename); |
616 | strcpy (buf, filename); |
617 | LOG(llevDebug, "make_path_tofile %s...", filename); |
617 | |
618 | while ((cp = strchr (cp + 1, (int) '/'))) { |
618 | while ((cp = strchr (cp + 1, (int) '/'))) { |
619 | *cp = '\0'; |
619 | *cp = '\0'; |
620 | #if 0 |
620 | #if 0 |
621 | LOG(llevDebug, "\n Checking %s...", buf); |
621 | LOG(llevDebug, "\n Checking %s...", buf); |
622 | #endif |
622 | #endif |