aboutsummaryrefslogtreecommitdiff
path: root/src/gnunet_chat_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnunet_chat_util.c')
-rw-r--r--src/gnunet_chat_util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gnunet_chat_util.c b/src/gnunet_chat_util.c
index cdbd46c..836286f 100644
--- a/src/gnunet_chat_util.c
+++ b/src/gnunet_chat_util.c
@@ -175,14 +175,15 @@ util_decrypt_file (const char *filename,
175} 175}
176 176
177int 177int
178util_get_filename (const char *directory, const struct GNUNET_HashCode *hash, 178util_get_filename (const char *directory, const char *subdir,
179 const struct GNUNET_HashCode *hash,
179 char **filename) 180 char **filename)
180{ 181{
181 return GNUNET_asprintf ( 182 return GNUNET_asprintf (
182 filename, 183 filename,
183 "%s%s%c%s", 184 "%s%s%c%s",
184 directory, 185 directory,
185 "files", 186 subdir,
186 DIR_SEPARATOR, 187 DIR_SEPARATOR,
187 GNUNET_h2s_full(hash) 188 GNUNET_h2s_full(hash)
188 ); 189 );