Merge pull request #349 from negativeExponent/unai_plugin_update
[pcsx_rearmed.git] / libpcsxcore / plugins.c
index 0c2b190..af7ebed 100644 (file)
@@ -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) {