Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-05-07 15:08:33 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-05-07 15:11:33 +0300
commit1a3fb3e8b1ef1e43adb4e082c09a10caad805880 (patch)
tree82044e1db0d1f25ad1b180fb0a02f032bd7317ff /intern/ghost
parentcd3f5983cd219daa4acad1a09d949fac087d2211 (diff)
Fix wrong comparison of drop target URI on X11
Need to compare, NOT to override passed file name.
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_DropTargetX11.cpp2
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);