Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP6
libsecprog
libsecprog-0.8_str-with-n-equal-zero.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libsecprog-0.8_str-with-n-equal-zero.diff of Package libsecprog
--- libsecprog/libsecprog.c.orig 2005-12-13 09:54:48.000000000 +0100 +++ libsecprog/libsecprog.c 2005-12-13 10:00:37.000000000 +0100 @@ -77,10 +77,10 @@ extern char *s_strncpy(char *dest, char { char *s; - if(strlen(src) < n) + if(n == 0) { #ifdef SS_DEBUG - syslog(LOG_USER|LOG_INFO, "SECSTRNCPY: size n bigger then strlen(src)\n"); + syslog(LOG_USER|LOG_INFO, "SECSTRNCPY: size n is 0\n"); #endif return(NULL); } @@ -97,10 +97,10 @@ extern char *s_strncat(char *dest, char { char *s; - if(strlen(src) < n) + if(n == 0) { #ifdef SS_DEBUG - syslog(LOG_USER|LOG_INFO, "SECSTRNCPY: size n bigger then strlen(src)\n"); + syslog(LOG_USER|LOG_INFO, "SECSTRNCAT: size n is 0\n"); #endif return(NULL); }
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