ash: placate -Werror=format-security
"In function 'sprint_status48': error: format not a string literal and no format arguments" function old new delta sprint_status48 160 158 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
666a9a4c4d
commit
33745b1fc8
3 changed files with 21 additions and 3 deletions
|
@ -166,6 +166,18 @@ char* FAST_FUNC stpcpy(char *p, const char *to_add)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STPNCPY
|
||||
char* FAST_FUNC stpncpy(char *p, const char *to_add, size_t n)
|
||||
{
|
||||
while (n != 0 && (*p = *to_add) != '\0') {
|
||||
p++;
|
||||
to_add++;
|
||||
n--;
|
||||
}
|
||||
return p;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_GETLINE
|
||||
ssize_t FAST_FUNC getline(char **lineptr, size_t *n, FILE *stream)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue