|
|
| version 1.2, 2003/11/23 09:59:10 | version 1.3, 2004/01/07 07:27:41 |
|---|---|
| Line 388 void file_cutseparator(char *path) { | Line 388 void file_cutseparator(char *path) { |
| int pos; | int pos; |
| pos = strlen(path) - 1; | pos = strlen(path) - 1; |
| if ((pos > 0) && (path[pos] == '/')) { | if ((pos > 0) && // 2文字以上でー |
| (path[pos] == '/') && // ケツが \ でー | |
| ((pos != 1) || (path[0] != '.'))) { // './' ではなかったら | |
| path[pos] = '\0'; | path[pos] = '\0'; |
| } | } |
| } | } |