From d4f27b9126675a969833793cd6b28c5c007da797 Mon Sep 17 00:00:00 2001 From: Daniel Zaoui Date: Tue, 23 Jun 2015 15:55:28 +0300 Subject: [PATCH] Tests/DnD: fix uri parsing When no \n is present at the end of the uris list, the function doesn't return the uri. --- src/bin/test_dnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/test_dnd.c b/src/bin/test_dnd.c index 05fff6f..05369e2 100644 --- a/src/bin/test_dnd.c +++ b/src/bin/test_dnd.c @@ -105,6 +105,7 @@ _drag_data_extract(char **drag_data) if (s) p += FILESEP_LEN; s = strchr(p, '\n'); + uri = p; if (s) { if (s - p > 0) @@ -130,7 +131,6 @@ _drag_data_extract(char **drag_data) } else p = NULL; - uri = p; *drag_data = s; return uri; -- 2.7.4