diff options
Diffstat (limited to 'src/fs/gnunet-fs-gtk-common.c')
-rw-r--r-- | src/fs/gnunet-fs-gtk-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/gnunet-fs-gtk-common.c b/src/fs/gnunet-fs-gtk-common.c index 4d416849..c4058cd1 100644 --- a/src/fs/gnunet-fs-gtk-common.c +++ b/src/fs/gnunet-fs-gtk-common.c | |||
@@ -60,9 +60,9 @@ GNUNET_FS_GTK_dubious_meta_to_utf8 (enum EXTRACTOR_MetaFormat format, | |||
60 | if (format == EXTRACTOR_METAFORMAT_C_STRING) | 60 | if (format == EXTRACTOR_METAFORMAT_C_STRING) |
61 | { | 61 | { |
62 | if (data_len > 0) | 62 | if (data_len > 0) |
63 | { /* There are no guarantees that data is NULL-terminated, AFAIU, | 63 | { /* There are no guarantees that data is NULL-terminated, AFAIU, |
64 | * so let's play it safe, shall we? | 64 | * so let's play it safe, shall we? |
65 | */ | 65 | */ |
66 | char *data_copy = GNUNET_malloc (data_len + 1); | 66 | char *data_copy = GNUNET_malloc (data_len + 1); |
67 | 67 | ||
68 | memcpy (data_copy, data, data_len); | 68 | memcpy (data_copy, data, data_len); |