Browse code

Bug 12385 - MAX_PATH and PATH_MAX mismatch

arlecchino authored on 2019/09/08 22:39:51
Showing 1 changed files
... ...
@@ -851,7 +851,7 @@ char *cli_sanitize_filepath(const char *filepath, size_t filepath_len)
851 851
     size_t sanitized_index   = 0;
852 852
     char *sanitized_filepath = NULL;
853 853
 
854
-    if ((NULL == filepath) || (0 == filepath_len) || (MAX_PATH < filepath_len)) {
854
+    if ((NULL == filepath) || (0 == filepath_len) || (PATH_MAX < filepath_len)) {
855 855
         goto done;
856 856
     }
857 857