fix misplaced *'s in string functions (harmless)

This commit is contained in:
Rich Felker committed 2011-04-07 16:19:30 -04:00
1 parent 4095f8338d
commit cb8dff2149
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ char *__stpncpy(char *d, const char *s, size_t n)
if (!n || !*s) goto tail;
wd=(void *)d; ws=(const void *)s;
for (; n>=sizeof(size_t) && !HASZERO(*ws);
n-=sizeof(size_t), ws++, *wd++) *wd = *ws;
n-=sizeof(size_t), ws++, wd++) *wd = *ws;
d=(void *)wd; s=(const void *)ws;
}
for (; n && (*d=*s); n--, s++, d++);