Mercurial > hg > xmms-sid
changeset 399:e25d23b07cd2
Use g_snprintf() instead of system snprintf(), because libc snprintf() is
broken in several systems.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 31 May 2006 13:34:04 +0000 |
parents | 933b9ea5923e |
children | 39824bf269f9 |
files | src/xs_fileinfo.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xs_fileinfo.c Wed May 31 13:00:05 2006 +0000 +++ b/src/xs_fileinfo.c Wed May 31 13:34:04 2006 +0000 @@ -224,7 +224,7 @@ /* Other menu items */ for (n = 1; n <= tmpInfo->nsubTunes; n++) { if (xs_fileinfostil) { - snprintf(tmpStr, sizeof(tmpStr), "Tune #%i: ", n); + g_snprintf(tmpStr, sizeof(tmpStr), "Tune #%i: ", n); tmpNode = xs_fileinfostil->subTunes[n]; @@ -235,7 +235,7 @@ else xs_pnstrcat(tmpStr, sizeof(tmpStr), "---"); } else { - snprintf(tmpStr, sizeof(tmpStr), "Tune #%i", n); + g_snprintf(tmpStr, sizeof(tmpStr), "Tune #%i", n); } tmpMenuItem = gtk_menu_item_new_with_label(tmpStr);