summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_file_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c
index 2c2406d939..fe9ab206bb 100644
--- a/src/lib/eina/eina_file_common.c
+++ b/src/lib/eina/eina_file_common.c
@@ -353,7 +353,7 @@ eina_file_path_sanitize(const char *path)
353 if (eina_file_path_relative(path)) 353 if (eina_file_path_relative(path))
354 { 354 {
355 result = eina_file_current_directory_get(path, len); 355 result = eina_file_current_directory_get(path, len);
356 len = eina_tmpstr_strlen(result) - 1; /* tmpstr lengths include '/0' */ 356 len = eina_tmpstr_len(result);
357 } 357 }
358 else 358 else
359 result = path; 359 result = path;