diff --git a/reactos/lib/string/i386/tcsncpy.h b/reactos/lib/string/i386/tcsncpy.h index e5d1d59e4ec..93a484a617c 100644 --- a/reactos/lib/string/i386/tcsncpy.h +++ b/reactos/lib/string/i386/tcsncpy.h @@ -1,4 +1,4 @@ -/* $Id: tcsncpy.h,v 1.1 2003/07/06 23:04:19 hyperion Exp $ +/* $Id: tcsncpy.h,v 1.2 2004/01/27 21:43:47 gvg Exp $ */ #include "tchar.h" @@ -22,7 +22,6 @@ _tcsncpy: _tstos test %_treg(a), %_treg(a) jnz .L1 - rep _tstos .L2: mov 0x0C(%esp), %eax diff --git a/reactos/lib/string/tcsncpy.h b/reactos/lib/string/tcsncpy.h index e543cdd64c9..03b363bb54b 100644 --- a/reactos/lib/string/tcsncpy.h +++ b/reactos/lib/string/tcsncpy.h @@ -1,4 +1,4 @@ -/* $Id: tcsncpy.h,v 1.1 2003/07/06 23:04:19 hyperion Exp $ +/* $Id: tcsncpy.h,v 1.2 2004/01/27 21:43:47 gvg Exp $ */ #include @@ -15,7 +15,6 @@ _TCHAR * _tcsncpy(_TCHAR * dst, const _TCHAR * src, size_t n) { if((*d ++ = *s ++) == 0) { - while (-- n != 0) *d ++ = 0; break; } }