aboutsummaryrefslogtreecommitdiffstats
path: root/src/playerData.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-02-25 19:13:10 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-02-25 19:13:10 +0000
commite1c839cd5679f9b60f6b5e2bfd3a341b64463456 (patch)
treef7876c1600e29d38f3a574333e482e4651a3d382 /src/playerData.c
parent483d8873bd851abb0db066323e0512e1a22dc840 (diff)
downloadmpd-e1c839cd5679f9b60f6b5e2bfd3a341b64463456.tar.gz
mpd-e1c839cd5679f9b60f6b5e2bfd3a341b64463456.tar.xz
mpd-e1c839cd5679f9b60f6b5e2bfd3a341b64463456.zip
cleanup logging, need to be careful with SECURE and DEBUG
git-svn-id: https://svn.musicpd.org/mpd/trunk@58 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/playerData.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playerData.c b/src/playerData.c
index 2976908f2..719258629 100644
--- a/src/playerData.c
+++ b/src/playerData.c
@@ -103,7 +103,7 @@ void initPlayerData() {
playerData_pd->playerControl.queueState = PLAYER_QUEUE_BLANK;
playerData_pd->playerControl.queueLockState = PLAYER_QUEUE_UNLOCKED;
playerData_pd->playerControl.seek = 0;
- memset(playerData_pd->playerControl.file,0,MAXPATHLEN);
+ memset(playerData_pd->playerControl.file,0,MAXPATHLEN+1);
playerData_pd->playerControl.crossFade = crossfade;
playerData_pd->playerControl.softwareVolume = 100;
playerData_pd->playerControl.totalPlayTime = 0;
@@ -113,7 +113,7 @@ void initPlayerData() {
playerData_pd->decoderControl.state = DECODE_STATE_STOP;
playerData_pd->decoderControl.seek = 0;
playerData_pd->decoderControl.error = DECODE_ERROR_NOERROR;
- memset(playerData_pd->decoderControl.file,0,MAXPATHLEN);
+ memset(playerData_pd->decoderControl.file,0,MAXPATHLEN+1);
}
PlayerData * getPlayerData() {