author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Wed, 19 Oct 2011 20:27:47 +0000 (22:27 +0200) | ||
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Wed, 19 Oct 2011 20:36:25 +0000 (22:36 +0200) | ||
commit | a69a33f49839d4977ab9d6168644f69ff4c65d4e | |
tree | e7576ca2908c9a1317e596b6d0c90a0b08257f5a | tree | snapshot |
parent | 524d59daae8cc5e28306f84d93ff929de37d6eab | commit | diff |
screen_lyrics: fix lyrics_title on small screens
It turns out snprintf returns the length of the resulting string, not
the actual number of bytes copied into the buffer, e.g. the following
call will return 33, and not 7 (or 8):
snprintf(buffer, 8, "this string is 33 characters long");
This patch also adds empty lines around the code dealing with the
plugin name to help readabiliy.
It turns out snprintf returns the length of the resulting string, not
the actual number of bytes copied into the buffer, e.g. the following
call will return 33, and not 7 (or 8):
snprintf(buffer, 8, "this string is 33 characters long");
This patch also adds empty lines around the code dealing with the
plugin name to help readabiliy.
src/screen_lyrics.c | diff | blob | history |