diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-08 17:20:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-08 17:20:23 +0000 |
commit | d8c53b12a818ff7cf82d06a1a69c395bdef85ee6 (patch) | |
tree | 0ebb0db416c157fcfde51a941185819dd12d51fd /src/util/os_installation.c | |
parent | 5184c17d32a39c928c2a0fec3ee1ad098bbaa562 (diff) | |
download | gnunet-d8c53b12a818ff7cf82d06a1a69c395bdef85ee6.tar.gz gnunet-d8c53b12a818ff7cf82d06a1a69c395bdef85ee6.zip |
-avoid calling memcpy() with NULL argument, even if len is 0
Diffstat (limited to 'src/util/os_installation.c')
-rw-r--r-- | src/util/os_installation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/os_installation.c b/src/util/os_installation.c index a0e8647a1..ea3ae3e79 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c | |||
@@ -289,7 +289,7 @@ get_path_from_module_filename () | |||
289 | GNUNET_assert (0); | 289 | GNUNET_assert (0); |
290 | 290 | ||
291 | upath = GNUNET_malloc (u8_string_length + 1); | 291 | upath = GNUNET_malloc (u8_string_length + 1); |
292 | memcpy (upath, u8_string, u8_string_length); | 292 | GNUNET_memcpy (upath, u8_string, u8_string_length); |
293 | upath[u8_string_length] = '\0'; | 293 | upath[u8_string_length] = '\0'; |
294 | 294 | ||
295 | free (u8_string); | 295 | free (u8_string); |