diff options
author | hizzlekizzle | 2020-05-23 22:04:21 -0500 |
---|---|---|
committer | GitHub | 2020-05-23 22:04:21 -0500 |
commit | 881977d12899fb99da181a0685ecb8f98cb23ed0 (patch) | |
tree | 8e5640a6dd3edcdfa7bf13c226cbb35d0d752ea7 /frontend/main.c | |
parent | f4c902e02372bf11f6b1afcd26d22564276fe00a (diff) | |
parent | 46ea5a4e4714bc57302c54b56d716f02a6e72c9e (diff) | |
download | pcsx_rearmed-881977d12899fb99da181a0685ecb8f98cb23ed0.tar.gz pcsx_rearmed-881977d12899fb99da181a0685ecb8f98cb23ed0.tar.bz2 pcsx_rearmed-881977d12899fb99da181a0685ecb8f98cb23ed0.zip |
Merge pull request #424 from negativeExponent/libretro
silence some warnings
Diffstat (limited to 'frontend/main.c')
-rw-r--r-- | frontend/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/frontend/main.c b/frontend/main.c index 64be927..b1ee4c7 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -307,7 +307,7 @@ static int cdidcmp(const char *id1, const char *id2) static void parse_cwcheat(void) { - char line[256], buf[64], name[64], *p; + char line[256], buf[256], name[256], *p; int newcheat = 1; u32 a, v; FILE *f; @@ -883,8 +883,9 @@ static int _OpenPlugins(void) { MAKE_PATH(dotdir, "/.pcsx/plugins/", NULL); strcpy(info.EmuName, "PCSX"); - strncpy(info.CdromID, CdromId, 9); - strncpy(info.CdromLabel, CdromLabel, 9); + memcpy(info.CdromID, CdromId, 9); /* no \0 trailing character? */ + memcpy(info.CdromLabel, CdromLabel, 9); + info.CdromLabel[9] = '\0'; info.psxMem = psxM; info.GPU_showScreenPic = GPU_showScreenPic; info.GPU_displayText = GPU_displayText; |