aboutsummaryrefslogtreecommitdiff
path: root/src/util/os_installation.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-14 07:23:11 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-14 07:23:11 +0000
commita0b178aa52170a1f8f6582f8541f4c91be943154 (patch)
tree5e0c7f6adc8ddeb084a2ccfe93fa5ef454861853 /src/util/os_installation.c
parent662b5736c37e8cf2b3e6aa5af53cef0d03b743ab (diff)
downloadgnunet-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.c2
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--;