mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fixed a buffer overflow in wcsncpy.
svn path=/trunk/; revision=3919
This commit is contained in:
parent
0b2f407fd4
commit
7d15711868
3 changed files with 3 additions and 5 deletions
|
@ -12,7 +12,6 @@ wchar_t * wcsncpy(wchar_t * dest,const wchar_t *src,size_t count)
|
||||||
return(dest);
|
return(dest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dest[i]=0;
|
|
||||||
return(dest);
|
return(dest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: wstring.c,v 1.7 2000/02/05 23:45:46 ekohl Exp $
|
/* $Id: wstring.c,v 1.8 2003/01/02 16:05:50 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -200,7 +200,6 @@ wchar_t* wcsncpy(wchar_t *dest, const wchar_t *src, size_t count)
|
||||||
return dest;
|
return dest;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dest[i] = 0;
|
|
||||||
|
|
||||||
return dest;
|
return dest;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
/*
|
/* $Id: wstring.c,v 1.18 2003/01/02 16:05:50 hbirr Exp $
|
||||||
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
* FILE: ntoskrnl/rtl/wstring.c
|
* FILE: ntoskrnl/rtl/wstring.c
|
||||||
|
@ -234,7 +235,6 @@ wchar_t *wcsncpy(wchar_t *dest, const wchar_t *src, size_t count)
|
||||||
return dest;
|
return dest;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dest[i] = 0;
|
|
||||||
|
|
||||||
return dest;
|
return dest;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue