aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-04-16 03:52:17 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-04-16 03:52:17 +0000
commitfe52847ad6b7f8d7de821037b8bc18d9ae9b977b (patch)
tree00caea4ac9a61764dec5113ec08a5815651c811b /src
parent13f3794d092434dd09e02a4248fdda6898d35a91 (diff)
downloadmpd-fe52847ad6b7f8d7de821037b8bc18d9ae9b977b.tar.gz
mpd-fe52847ad6b7f8d7de821037b8bc18d9ae9b977b.tar.xz
mpd-fe52847ad6b7f8d7de821037b8bc18d9ae9b977b.zip
fix bug in prependCwdToPathDup()
git-svn-id: https://svn.musicpd.org/mpd/trunk@789 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/path.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c
index 6eecf084e..f93894c7b 100644
--- a/src/path.c
+++ b/src/path.c
@@ -283,14 +283,14 @@ char * prependCwdToPathDup(char * path) {
len = strlen(ret);
if(ret[len-1]!='/') {
strncat(ret,"/",MAXPATHLEN-len);
- len = strlen(path);
+ len = strlen(ret);
}
strncat(ret,path,MAXPATHLEN-len);
len = strlen(ret);
}
if(ret[len-1]!='/') {
strncat(ret,"/",MAXPATHLEN-len);
- len = strlen(path);
+ len = strlen(ret);
}
return realloc(ret,len+1);