From dfacef3019e560159601c80745f2b88919f65d27 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 11 Nov 2013 20:55:09 +0100 Subject: fixed few errors reported by cppcheck (thanks to Pavel Roschin) --- .../libsidplay/src/mos6510/cycle_based/mos6510c.i | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'plugins/sid') diff --git a/plugins/sid/sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i b/plugins/sid/sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i index c1aa0559..646da760 100644 --- a/plugins/sid/sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i +++ b/plugins/sid/sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i @@ -131,6 +131,7 @@ const char _sidtune_CHRtab[256] = // CHR$ conversion table (0x01 = no output) */ #include "config.h" +#include #ifdef HAVE_EXCEPTIONS # include @@ -2559,9 +2560,9 @@ void MOS6510::reset (void) // Module Credits // void MOS6510::credits (char *sbuffer) { // Copy credits to buffer - sprintf (sbuffer, "%sModule : MOS6510 Cycle Exact Emulation\n", sbuffer); - sprintf (sbuffer, "%sWritten By : %s\n", sbuffer, MOS6510_AUTHOR); - sprintf (sbuffer, "%sVersion : %s\n", sbuffer, MOS6510_VERSION); - sprintf (sbuffer, "%sReleased : %s\n", sbuffer, MOS6510_DATE); - sprintf (sbuffer, "%sEmail : %s\n", sbuffer, MOS6510_EMAIL); + strcat (sbuffer, "Module : MOS6510 Cycle Exact Emulation\n" + "Written By : " MOS6510_AUTHOR "\n" + "Version : " MOS6510_VERSION "\n" + "Released : " MOS6510_DATE "\n" + "Email : " MOS6510_EMAIL "\n"); } -- cgit v1.2.3