X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libpcsxcore%2Fplugins.c;h=af7ebede4da12966766731f04cae25e2135c3478;hb=bbb541fb7c3330ca1184d059bbe358059c2138f6;hp=0c2b19042186b9515b9b1f292200b136951e3880;hpb=13fab97ccf3297292728cca2d356339cc8e5ee5a;p=pcsx_rearmed.git diff --git a/libpcsxcore/plugins.c b/libpcsxcore/plugins.c index 0c2b1904..af7ebede 100644 --- a/libpcsxcore/plugins.c +++ b/libpcsxcore/plugins.c @@ -1182,7 +1182,7 @@ void SetIsoFile(const char *filename) { IsoFile[0] = '\0'; return; } - strncpy(IsoFile, filename, MAXPATHLEN); + strncpy(IsoFile, filename, MAXPATHLEN - 1); } const char *GetIsoFile(void) {