aboutsummaryrefslogtreecommitdiffstats
path: root/src/directory.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-22 16:14:34 +0100
committerMax Kellermann <max@duempel.org>2009-01-22 16:14:34 +0100
commit1f8a1cbc08c87369583e57d44ee165b40346b7cf (patch)
tree09a3cf0ed32a7091803a8f48a0be06897bfe9df8 /src/directory.c
parent1e6a26b6cae1e9bd90d820c6ea4ec8be2da2da91 (diff)
downloadmpd-1f8a1cbc08c87369583e57d44ee165b40346b7cf.tar.gz
mpd-1f8a1cbc08c87369583e57d44ee165b40346b7cf.tar.xz
mpd-1f8a1cbc08c87369583e57d44ee165b40346b7cf.zip
playlist: fix buffer underflow when getting current song
The function moveSongInPlaylist() attempted to read the position of the current song, even if it was -1. Check that first. The same bug was in shufflePlaylist().
Diffstat (limited to 'src/directory.c')
0 files changed, 0 insertions, 0 deletions