瀏覽代碼

fix copy/paste

Samuel Thibault 11 年之前
父節點
當前提交
e85c81edf6
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/common/utils.c

+ 1 - 2
src/common/utils.c

@@ -35,8 +35,7 @@ static char * dirname(char * path)
    char drive[_MAX_DRIVE];
    char dir[_MAX_DIR];
    /* Remove trailing slash */
-   while (strlen(path) > 0 && (*(path+strlen(path)-1) == '/' || *(path+strlen(p
-th)-1) == '\\'))
+   while (strlen(path) > 0 && (*(path+strlen(path)-1) == '/' || *(path+strlen(path)-1) == '\\'))
       *(path+strlen(path)-1) = '\0';
    _splitpath(path, drive, dir, NULL, NULL);
    _makepath(path, drive, dir, NULL, NULL);