[PATCH] klibc: version 1.0.5

This commit is contained in:
kay.sievers@vrfy.org 2005-03-29 03:53:45 +02:00 committed by Greg KH
parent bb1a77d34c
commit 12340f4108
4 changed files with 8 additions and 6 deletions

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

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

View file

@ -1 +1 @@
1.0.4
1.0.5

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__ */