diff options
author | 2010-05-08 12:03:54 +0200 | |
---|---|---|
committer | 2010-05-08 12:03:54 +0200 | |
commit | 0af2e6654a98c70ae5476e8cedbd945f30ced92e (patch) | |
tree | 14b5658fe88d194be886c9174ba5be53927de517 /playlist.c | |
parent | 1c3f1ec205d0167db0469e37834c454747ed8705 (diff) |
fixed ddbtabstrip title clipping
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -414,6 +414,11 @@ plt_get_title (int plt, char *buffer, int bufsize) { playlist_t *p = playlists_head; for (i = 0; p && i <= plt; i++) { if (i == plt) { + if (!buffer) { + int l = strlen (p->title); + PLT_UNLOCK; + return l; + } strncpy (buffer, p->title, bufsize); buffer[bufsize-1] = 0; PLT_UNLOCK; |