changeset 1051:1e9c9cd8be73

dStrdup
author corvid <corvid@lavabit.com>
date Fri, 24 Apr 2009 14:43:15 +0000
parents 6a270ab021ce
children cb6c6a8a5e6c 64e078b7a711
files src/auth.c src/html.cc
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth.c	Thu Apr 23 10:21:17 2009 -0400
+++ b/src/auth.c	Fri Apr 24 14:43:15 2009 +0000
@@ -362,7 +362,7 @@
    int len, i;
    char *realm_path, *n_path;
 
-   n_path = strdup(path);
+   n_path = dStrdup(path);
    len = strlen(n_path);
 
    /* remove trailing '/' */
--- a/src/html.cc	Thu Apr 23 10:21:17 2009 -0400
+++ b/src/html.cc	Fri Apr 24 14:43:15 2009 +0000
@@ -2815,9 +2815,9 @@
             if ((p = strchr(content + 1, *content)))
                mr_url = dStrndup(content + 1, p - content - 1);
             else
-               mr_url = strdup(content + 1);
+               mr_url = dStrdup(content + 1);
          } else {
-            mr_url = strdup(content);
+            mr_url = dStrdup(content);
          }
 
          if (delay == 0) {