summaryrefslogtreecommitdiff
path: root/plugins/sid
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-11 20:55:09 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-11 21:30:40 +0100
commitdfacef3019e560159601c80745f2b88919f65d27 (patch)
tree14fd54c01bf3ba26076c71f3ca09e6f77bbdc5fb /plugins/sid
parent679daf9907e3ae8bba66fe8a2e5f57a2987130f4 (diff)
fixed few errors reported by cppcheck (thanks to Pavel Roschin)
Diffstat (limited to 'plugins/sid')
-rw-r--r--plugins/sid/sidplay-libs/libsidplay/src/mos6510/cycle_based/mos6510c.i11
1 files changed, 6 insertions, 5 deletions
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 <string.h>
#ifdef HAVE_EXCEPTIONS
# include <new>
@@ -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");
}