[PATCH] klibc: version 1.0.5

This commit is contained in:
kay.sievers@vrfy.org
2005-04-26 23:55:00 -07:00
committed by Greg KH
parent bb1a77d34c
commit 12340f4108
4 changed files with 8 additions and 6 deletions
+1 -2
View File
@@ -26,8 +26,7 @@ size_t strlcat(char *dst, const char *src, size_t size)
bytes++;
}
if (size)
*q = '\0';
*q = '\0';
return bytes;
}
+3 -1
View File
@@ -19,8 +19,10 @@ size_t strlcpy(char *dst, const char *src, size_t size)
bytes++;
}
if (size)
/* If size == 0 there is no space for a final null... */
if ( size )
*q = '\0';
return bytes;
}
+1 -1
View File
@@ -1 +1 @@
1.0.4
1.0.5
+3 -2
View File
@@ -58,8 +58,10 @@ size_t strlcpy(char *dst, const char *src, size_t size)
bytes++;
}
/* If size == 0 there is no space for a final null... */
if (size)
*q = '\0';
return bytes;
}
@@ -83,8 +85,7 @@ size_t strlcat(char *dst, const char *src, size_t size)
bytes++;
}
if (size)
*q = '\0';
*q = '\0';
return bytes;
}
#endif /* __OWN_STRLCPYCAT__ */