diff options
author | retro-wertz | 2019-08-03 08:35:12 +0800 |
---|---|---|
committer | retro-wertz | 2019-08-03 08:35:12 +0800 |
commit | 13fab97ccf3297292728cca2d356339cc8e5ee5a (patch) | |
tree | 9eec2251ddd600509db658e046a587ecc3f72ee7 /libpcsxcore/plugins.c | |
parent | fcb84f0c6ad095c355d8c0835fc6c5fcdc2a6813 (diff) | |
download | pcsx_rearmed-13fab97ccf3297292728cca2d356339cc8e5ee5a.tar.gz pcsx_rearmed-13fab97ccf3297292728cca2d356339cc8e5ee5a.tar.bz2 pcsx_rearmed-13fab97ccf3297292728cca2d356339cc8e5ee5a.zip |
Silence warning -Wformat-overflow
- Increasing the maximum size of destination char array to x2 to silence this warning.
Diffstat (limited to 'libpcsxcore/plugins.c')
-rw-r--r-- | libpcsxcore/plugins.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpcsxcore/plugins.c b/libpcsxcore/plugins.c index 4f52ed2..0c2b190 100644 --- a/libpcsxcore/plugins.c +++ b/libpcsxcore/plugins.c @@ -1064,7 +1064,7 @@ void CALLBACK clearDynarec(void) { int LoadPlugins() { int ret; - char Plugin[MAXPATHLEN]; + char Plugin[MAXPATHLEN * 2]; ReleasePlugins(); SysLibError(); @@ -1169,7 +1169,7 @@ int ReloadCdromPlugin() if (UsingIso()) { LoadCDRplugin(NULL); } else { - char Plugin[MAXPATHLEN]; + char Plugin[MAXPATHLEN * 2]; sprintf(Plugin, "%s/%s", Config.PluginsDir, Config.Cdr); if (LoadCDRplugin(Plugin) == -1) return -1; } |