From 0694e2e0cf951049b5c268e359c35158277cf7c2 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Thu, 21 Aug 2008 21:27:42 +0200 Subject: Always canonicalize paths when adding items (avoid blank directory names) --- common/strutils.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'common/strutils.h') diff --git a/common/strutils.h b/common/strutils.h index 95cc16b..872365c 100644 --- a/common/strutils.h +++ b/common/strutils.h @@ -26,11 +26,11 @@ #include -#ifdef __VERBOSE_DEBUG +#ifdef __VERBOSE_DEBUG #define log(msg...) printf(msg) #else #define log(msg...) { } -#endif +#endif #define IS_DIR_SEP(ch) ((ch) == '/') @@ -44,6 +44,7 @@ char* exclude_leading_path_sep(const char *APath); char* extract_file_name(const char *APath); char* extract_file_path(const char *APath); char* resolve_relative(const char *source, const char *point_to); +char* canonicalize_filename(const char *filename); #endif /* __STRUTILS_H__ */ -- cgit v1.2.3