forked from pool/libsecprog
29 lines
731 B
Diff
29 lines
731 B
Diff
--- 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);
|
|
}
|