diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-07 15:08:33 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-07 15:11:33 +0300 |
commit | 1a3fb3e8b1ef1e43adb4e082c09a10caad805880 (patch) | |
tree | 82044e1db0d1f25ad1b180fb0a02f032bd7317ff /intern | |
parent | cd3f5983cd219daa4acad1a09d949fac087d2211 (diff) |
Fix wrong comparison of drop target URI on X11
Need to compare, NOT to override passed file name.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/ghost/intern/GHOST_DropTargetX11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_DropTargetX11.cpp b/intern/ghost/intern/GHOST_DropTargetX11.cpp index 0efc8a78df5..30ab843c593 100644 --- a/intern/ghost/intern/GHOST_DropTargetX11.cpp +++ b/intern/ghost/intern/GHOST_DropTargetX11.cpp @@ -192,7 +192,7 @@ void GHOST_DropTargetX11::UrlDecode(char *decodedOut, int bufferSize, const char char *GHOST_DropTargetX11::FileUrlDecode(char *fileUrl) { - if (strncpy(fileUrl, "file://", 7) != 0) { + if (strncmp(fileUrl, "file://", 7) == 0) { /* assume one character of encoded URL can be expanded to 4 chars max */ int decodedSize = 4 * strlen(fileUrl) + 1; char *decodedPath = (char *)malloc(decodedSize); |