diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-02-25 21:10:56 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-02-25 21:10:56 +0000 |
commit | 8edc416344afe51e3509d09e11a37c91517e0f6a (patch) | |
tree | 87917c82caffb575dad24880bbd00d71ec8fa99a /src/path.c | |
parent | e1c839cd5679f9b60f6b5e2bfd3a341b64463456 (diff) | |
download | mpd-8edc416344afe51e3509d09e11a37c91517e0f6a.tar.gz mpd-8edc416344afe51e3509d09e11a37c91517e0f6a.tar.xz mpd-8edc416344afe51e3509d09e11a37c91517e0f6a.zip |
some more cleanups
git-svn-id: https://svn.musicpd.org/mpd/trunk@60 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/path.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.c b/src/path.c index c91240908..a7f143dc7 100644 --- a/src/path.c +++ b/src/path.c @@ -134,7 +134,7 @@ char * rmp2amp(char * relativePath) { memset(absolutePath,0,MAXPATHLEN+1); - strcpy(absolutePath,musicDir); + strncpy(absolutePath,musicDir,MAXPATHLEN); strncat(absolutePath,relativePath,MAXPATHLEN-strlen(musicDir)); return absolutePath; @@ -145,7 +145,7 @@ char * rpp2app(char * relativePath) { memset(absolutePath,0,MAXPATHLEN+1); - strcpy(absolutePath,playlistDir); + strncpy(absolutePath,playlistDir,MAXPATHLEN); strncat(absolutePath,relativePath,MAXPATHLEN-strlen(musicDir)); return absolutePath; |