Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:plater
plib
plib-1.8.5-strncat.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File plib-1.8.5-strncat.patch of Package plib
--- src/ssg/ssgLoadOBJ.cxx +++ src/ssg/ssgLoadOBJ.cxx @@ -220,8 +220,8 @@ *strrchr(mtl_filename, '/') = 0; if(NULL!=strrchr(mtl_filename, '\\')) *strrchr(mtl_filename, '\\') = 0; - strncat(mtl_filename, "\\", 1024); - strncat(mtl_filename, fname, 1024); + strncat(mtl_filename, "\\", sizeof(mtl_filename)-strlen(mtl_filename)-1); + strncat(mtl_filename, fname, sizeof(mtl_filename)-strlen(mtl_filename)-1); filein = fopen (mtl_filename,"r") ; if ( filein == 0 )
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor