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);
 	}