summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiep Ha <thiepha@gmail.com>2015-03-26 23:01:11 +0000
committerThiep Ha <thiepha@gmail.com>2015-06-02 21:50:24 +0900
commit7a119ad957e8adb1a715fd024169039cd80119a8 (patch)
tree33c21399a7d7762c9f7fad6e719ebdd9db0971f7
parent676f2dca4220caa3da472756c215f02968e3ce71 (diff)
downloadelementary-7a119ad957e8adb1a715fd024169039cd80119a8.tar.gz
test/Dnd: Correct drag data extract
If data is not started with a FILESEP, extract function returns wrong data. This patch fixes this bug case. Test case: Drag two items in gengrid or genlist of dnd test cases and drop to others.
-rw-r--r--src/bin/test_dnd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/test_dnd.c b/src/bin/test_dnd.c
index 05fff6f79..e61f54b99 100644
--- a/src/bin/test_dnd.c
+++ b/src/bin/test_dnd.c
@@ -102,7 +102,7 @@ _drag_data_extract(char **drag_data)
if (!p)
return uri;
char *s = strstr(p, FILESEP);
- if (s)
+ if (s && (s == p))
p += FILESEP_LEN;
s = strchr(p, '\n');
if (s)