From cb8dff2149c393c94c2abbef186c564829b97e93 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 7 Apr 2011 16:19:30 -0400 Subject: fix misplaced *'s in string functions (harmless) --- src/string/stpncpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/string/stpncpy.c') diff --git a/src/string/stpncpy.c b/src/string/stpncpy.c index 473db17e..a04cdce8 100644 --- a/src/string/stpncpy.c +++ b/src/string/stpncpy.c @@ -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++); -- cgit v1.2.1