summaryrefslogtreecommitdiff
path: root/src/ne_uri.c
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-01-01 22:29:45 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-01-01 22:29:45 +0000
commitdb2f773b5a7ad4dd1fe6f0b782ec160c1951641f (patch)
treeaa926dc1dda52db8897dd750ca8af4dcdc5ccb3f /src/ne_uri.c
parent3c6f76d53e304a93b52597aa3e183f1018127dce (diff)
downloadneon-db2f773b5a7ad4dd1fe6f0b782ec160c1951641f.tar.gz
* src/ne_uri.c (remove_dot_segments): malloc the correct size of
output buffer rather than strdup'ing the input buffer. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@818 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_uri.c')
-rw-r--r--src/ne_uri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ne_uri.c b/src/ne_uri.c
index 621195f..38c63cd 100644
--- a/src/ne_uri.c
+++ b/src/ne_uri.c
@@ -287,7 +287,7 @@ static char *remove_dot_segments(const char *path)
char *in, *inc, *out;
inc = in = ne_strdup(path);
- out = ne_strdup(path);
+ out = ne_malloc(strlen(path) + 1);
out[0] = '\0';
while (in[0]) {