mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +03:00
[PATCH] klibc: version 1.0.5
This commit is contained in:
parent
bb1a77d34c
commit
12340f4108
@ -26,8 +26,7 @@ size_t strlcat(char *dst, const char *src, size_t size)
|
||||
bytes++;
|
||||
}
|
||||
|
||||
if (size)
|
||||
*q = '\0';
|
||||
*q = '\0';
|
||||
return bytes;
|
||||
}
|
||||
|
||||
|
@ -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 @@
|
||||
1.0.4
|
||||
1.0.5
|
||||
|
@ -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__ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user