aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Durner <durner@gnunet.org>2005-08-28 22:22:59 +0000
committerNils Durner <durner@gnunet.org>2005-08-28 22:22:59 +0000
commit46dc5d9ca52ce41b4e65d81ba48edb37e1356ae4 (patch)
tree59652ea8c9fa567c5aef7c918e03ec1bce53acbf
parent396ac928008eff51b0c2531093370c50ef019c7e (diff)
downloadgnunet-gtk-46dc5d9ca52ce41b4e65d81ba48edb37e1356ae4.tar.gz
gnunet-gtk-46dc5d9ca52ce41b4e65d81ba48edb37e1356ae4.zip
fix
-rw-r--r--src/plugins/fs/download.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/fs/download.c b/src/plugins/fs/download.c
index af4e32ed..c84de4dd 100644
--- a/src/plugins/fs/download.c
+++ b/src/plugins/fs/download.c
@@ -222,14 +222,14 @@ static void initiateDownload(GtkTreeModel * model,
222 strlen(ECRS_FILE_INFIX)]); 222 strlen(ECRS_FILE_INFIX)]);
223 223
224 /* Append ".gnd" if needed */ 224 /* Append ".gnd" if needed */
225 if (mime && strcmp(mime, "application/gnunet-directory") == 0) { 225 if (mime && strcmp(mime, GNUNET_DIRECTORY_MIME) == 0) {
226 int len = strlen(pfx); 226 int len = strlen(pfx);
227 if (len > 5 && strcmp(pfx + len - 5, ".gnd") != 0) { 227 if (len > 4 && strcmp(pfx + len - 4, GNUNET_DIRECTORY_EXT) != 0) {
228 char *end = pfx + len - 1; 228 char *end = pfx + len - 1;
229 if (*end == '/' || *end == '\\') 229 if (*end == '/' || *end == '\\')
230 *end = 0; 230 *end = 0;
231 } 231 }
232 strcat(pfx, ".gnd"); 232 strcat(pfx, GNUNET_DIRECTORY_EXT);
233 } 233 }
234 234
235#ifdef WINDOWS 235#ifdef WINDOWS