dtfile: Remove 97 compiler warnings

This commit is contained in:
Peter Howkins
2012-08-30 19:54:01 +01:00
parent ef67cebea5
commit 764a0c7e72
19 changed files with 102 additions and 99 deletions

View File

@@ -656,7 +656,7 @@ _DtCopyPathFromInput(input_string, current_dir)
/* Strip off trailing '/' */
dir_len = strlen(path);
if (dir_len > 1 && *(path + dir_len - 1) == '/')
*(path + dir_len - 1) = NULL;
*(path + dir_len - 1) = '\0';
return path;
}
char *