aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/download.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/download.c')
-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