set of portability changes from lint/asan/ubsan

This commit is contained in:
Chet Ramey
2023-01-07 13:18:20 -05:00
parent 2e725f7346
commit 8fd8cd8f7b
35 changed files with 162 additions and 106 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ strip_trailing (char *string, int len, int newlines_only)
/* A wrapper for bcopy that can be prototyped in general.h */
void
xbcopy (char *s, char *d, size_t n)
xbcopy (const void *s, void *d, size_t n)
{
FASTCOPY (s, d, n);
}