Mercurial > audlegacy-plugins
changeset 288:e6822648a3d5 trunk
[svn] - fix for buffer usage in cddb.c by Richard Chan <rspchan -at starhub.net.sg>
author | yaz |
---|---|
date | Wed, 22 Nov 2006 04:51:29 -0800 |
parents | eb768b801ab1 |
children | a60da24269dc |
files | ChangeLog src/cdaudio/cddb.c |
diffstat | 2 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Nov 21 22:09:05 2006 -0800 +++ b/ChangeLog Wed Nov 22 04:51:29 2006 -0800 @@ -1,3 +1,11 @@ +2006-11-22 06:09:05 +0000 William Pitcock <nenolod@nenolod.net> + revision [614] + - add formal support for objective make overlays. this needs testing on BSD, but should work as I only used posix-compliant commands. + + trunk/mk/objective.mk | 43 +++++++++++++++++++++++++++++++++++++++---- + 1 file changed, 39 insertions(+), 4 deletions(-) + + 2006-11-21 03:45:10 +0000 Yoshiki Yazawa <yaz@cc.rim.or.jp> revision [610] - revise CXXFLAGS fix.
--- a/src/cdaudio/cddb.c Tue Nov 21 22:09:05 2006 -0800 +++ b/src/cdaudio/cddb.c Wed Nov 22 04:51:29 2006 -0800 @@ -109,14 +109,17 @@ cddb_generate_offset_string(cdda_disc_toc_t * info) { gchar *buffer; + gchar offset[8]; int i; buffer = g_malloc(info->last_track * 7 + 1); sprintf(buffer, "%d", LBA(info->track[info->first_track])); - for (i = info->first_track + 1; i <= info->last_track; i++) - sprintf(buffer, "%s+%d", buffer, LBA(info->track[i])); + for (i = info->first_track + 1; i <= info->last_track; i++) { + sprintf(offset, "+%d", LBA(info->track[i])); + strcat(buffer, offset); + } return buffer; }