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)
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)
102 if (!p) 102 if (!p)
103 return uri; 103 return uri;
104 char *s = strstr(p, FILESEP); 104 char *s = strstr(p, FILESEP);
105 if (s) 105 if (s && (s == p))
106 p += FILESEP_LEN; 106 p += FILESEP_LEN;
107 s = strchr(p, '\n'); 107 s = strchr(p, '\n');
108 if (s) 108 if (s)