diff options
| author | Rich Felker <dalias@aerifal.cx> | 2011-04-07 16:19:30 -0400 | 
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2011-04-07 16:19:30 -0400 | 
| commit | cb8dff2149c393c94c2abbef186c564829b97e93 (patch) | |
| tree | 9f02299bde067f1a5531928fad6e50d296d09ae9 /src/string/stpncpy.c | |
| parent | 4095f8338d77cad73a8afbf2d4a0d7987e472bab (diff) | |
| download | musl-cb8dff2149c393c94c2abbef186c564829b97e93.tar.gz | |
fix misplaced *'s in string functions (harmless)
Diffstat (limited to 'src/string/stpncpy.c')
| -rw-r--r-- | src/string/stpncpy.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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++); | 
