From fe52847ad6b7f8d7de821037b8bc18d9ae9b977b Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Fri, 16 Apr 2004 03:52:17 +0000 Subject: fix bug in prependCwdToPathDup() git-svn-id: https://svn.musicpd.org/mpd/trunk@789 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/path.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3