--- np2/x11/sysmng.c 2005/03/05 13:25:17 1.3 +++ np2/x11/sysmng.c 2011/01/15 14:05:47 1.6 @@ -7,6 +7,7 @@ #include "iocore.h" #include "fddfile.h" #include "ideio.h" +#include "sxsi.h" #include "sysmng.h" #include "toolkit.h" @@ -66,10 +67,6 @@ sysmng_updatecaption(BYTE flag) milstr_ncat(titlestr, file_getname((char *)fdd_diskname(1)), sizeof(titlestr)); } #if defined(SUPPORT_IDEIO) -{ - OEMCHAR *p = sxsi_getfilename(0x02); - printf("CD-ROM: %s\n", p ? p : "unmount"); -} if (sxsi_getfilename(0x02)) { milstr_ncat(titlestr, " CD-ROM:", sizeof(titlestr)); milstr_ncat(titlestr, file_getname((OEMCHAR *)sxsi_getfilename(0x02)), sizeof(titlestr)); @@ -80,14 +77,14 @@ sysmng_updatecaption(BYTE flag) clockstr[0] = '\0'; if (np2oscfg.DISPCLK & 2) { if (workclock.fps) { - SPRINTF(clockstr, " - %u.%1uFPS", workclock.fps / 10, workclock.fps % 10); + g_snprintf(clockstr, sizeof(clockstr), " - %u.%1uFPS", workclock.fps / 10, workclock.fps % 10); } else { milstr_ncpy(clockstr, " - 0FPS", sizeof(clockstr)); } } if (np2oscfg.DISPCLK & 1) { - SPRINTF(work, " %2u.%03uMHz", workclock.khz / 1000, workclock.khz % 1000); + g_snprintf(work, sizeof(work), " %2u.%03uMHz", workclock.khz / 1000, workclock.khz % 1000); if (clockstr[0] == '\0') { milstr_ncpy(clockstr, " -", sizeof(clockstr)); }