Projects
Games
pcsxr
pcsxr-fix-array-overflow.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pcsxr-fix-array-overflow.patch of Package pcsxr
Index: pcsxr/gui/LnxMain.c =================================================================== --- pcsxr.orig/gui/LnxMain.c +++ pcsxr/gui/LnxMain.c @@ -307,7 +307,7 @@ int main(int argc, char *argv[]) { if (i+1 >= argc) break; strncpy(isofilename, argv[++i], MAXPATHLEN); - isofilename[MAXPATHLEN] = '\0'; + isofilename[MAXPATHLEN - 1] = '\0'; if (isofilename[0] != '/') { getcwd(path, MAXPATHLEN); if (strlen(path) + strlen(isofilename) + 1 < MAXPATHLEN) {
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.