[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2559 - gnunet-gtk/src/plugins/fs
From: |
durner |
Subject: |
[GNUnet-SVN] r2559 - gnunet-gtk/src/plugins/fs |
Date: |
Fri, 17 Mar 2006 15:31:03 -0800 (PST) |
Author: durner
Date: 2006-03-17 15:31:00 -0800 (Fri, 17 Mar 2006)
New Revision: 2559
Modified:
gnunet-gtk/src/plugins/fs/download.c
Log:
cap file name (if file hash) under Windows
Modified: gnunet-gtk/src/plugins/fs/download.c
===================================================================
--- gnunet-gtk/src/plugins/fs/download.c 2006-03-17 23:26:12 UTC (rev
2558)
+++ gnunet-gtk/src/plugins/fs/download.c 2006-03-17 23:31:00 UTC (rev
2559)
@@ -124,6 +124,9 @@
GtkTreePath *dirTreePath;
char *dirPath;
unsigned int dirPathLen;
+#ifdef WINDOWS
+ char *filehash;
+#endif
uri = NULL;
meta = NULL;
@@ -172,7 +175,15 @@
}
if (name == NULL)
+#ifdef WINDOWS
+ {
+ filehash = STRDUP(uri_name);
+ filehash[16] = 0;
+ name = filehash;
+ }
+#else
name = uri_name;
+#endif
final_download_dir = getFileName("FS",
"INCOMINGDIR",
@@ -271,6 +282,9 @@
-1);
FREE(uri_name);
FREE(dirPath);
+#ifdef WINDOWS
+ FREENONNULL(filehash);
+#endif
FREENONNULL(final_download_dir);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2559 - gnunet-gtk/src/plugins/fs,
durner <=