# HG changeset patch # User Matti Hamalainen # Date 1149082444 0 # Node ID e25d23b07cd256a754a799bf77e9426b394a434f # Parent 933b9ea5923e56e0dd984dddc58a0452768b03d2 Use g_snprintf() instead of system snprintf(), because libc snprintf() is broken in several systems. diff -r 933b9ea5923e -r e25d23b07cd2 src/xs_fileinfo.c --- 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);