diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2010-07-09 10:23:40 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2010-07-09 10:23:40 +0000 |
commit | 05776fa6af71f73c34cb08b5ee2712e73a1c4b71 (patch) | |
tree | ca0e22846a713d770495e0ee9034625fff9f809e /src/fs/fs_file_information.c | |
parent | e421d7c66053ed690cea2e685ee413815ace9575 (diff) |
naming
git-svn-id: https://gnunet.org/svn/gnunet@12187 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/fs/fs_file_information.c')
-rw-r--r-- | src/fs/fs_file_information.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fs/fs_file_information.c b/src/fs/fs_file_information.c index 1973e2bc16..e0403b2ed3 100644 --- a/src/fs/fs_file_information.c +++ b/src/fs/fs_file_information.c @@ -612,8 +612,9 @@ GNUNET_FS_file_information_create_from_directory (struct GNUNET_FS_Handle *h, dc.entries = dc.entries->next; } fn = filename; - while (NULL != (ss = strstr (fn, - DIR_SEPARATOR_STR))) + while ( (NULL != (ss = strstr (fn, + DIR_SEPARATOR_STR))) && + (strlen (ss) > 1) ) fn = ss + 1; GNUNET_CONTAINER_meta_data_insert (ret->meta, "<gnunet>", |