diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-10-14 07:23:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-10-14 07:23:11 +0000 |
commit | a0b178aa52170a1f8f6582f8541f4c91be943154 (patch) | |
tree | 5e0c7f6adc8ddeb084a2ccfe93fa5ef454861853 /src/util/os_installation.c | |
parent | 662b5736c37e8cf2b3e6aa5af53cef0d03b743ab (diff) | |
download | gnunet-a0b178aa52170a1f8f6582f8541f4c91be943154.tar.gz gnunet-a0b178aa52170a1f8f6582f8541f4c91be943154.zip |
LRN: Use GNUNET_strdup() instead of strdup()
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 688cc448e..080496bbc 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c | |||
@@ -178,7 +178,7 @@ get_path_from_dyld_image () | |||
178 | path = _dyld_get_image_name (i); | 178 | path = _dyld_get_image_name (i); |
179 | if (path != NULL && strlen (path) > 0) | 179 | if (path != NULL && strlen (path) > 0) |
180 | { | 180 | { |
181 | p = strdup (path); | 181 | p = GNUNET_strdup (path); |
182 | s = p + strlen (p); | 182 | s = p + strlen (p); |
183 | while ((s > p) && (*s != '/')) | 183 | while ((s > p) && (*s != '/')) |
184 | s--; | 184 | s--; |