diff options
author | Michael Pavone <pavone@retrodev.com> | 2018-05-02 00:03:22 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2018-05-02 00:03:22 -0700 |
commit | 7b2501bbfa7caf11303621415aab98fa4c454968 (patch) | |
tree | fbd1ed76c046e4dbe15ead0e570a8193781a5039 /util.c | |
parent | c0e175f9d588f1aa5e0049a43d5e37199c2d1a60 (diff) |
Fix drag and drop when using Nuklear UI
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -303,11 +303,11 @@ char is_absolute_path(char *path) return is_path_sep(path[0]); } -char * basename_no_extension(char *path) +char * basename_no_extension(const char *path) { - char *lastdot = NULL; - char *lastslash = NULL; - char *cur; + const char *lastdot = NULL; + const char *lastslash = NULL; + const char *cur; for (cur = path; *cur; cur++) { if (*cur == '.') { @@ -365,10 +365,10 @@ uint8_t path_matches_extensions(char *path, char **ext_list, uint32_t num_exts) return 0; } -char * path_dirname(char *path) +char * path_dirname(const char *path) { - char *lastslash = NULL; - char *cur; + const char *lastslash = NULL; + const char *cur; for (cur = path; *cur; cur++) { if (is_path_sep(*cur)) { |