Re: generic strncpy - off-by-one error

Valdis.Kletnieks
2003-08-12T15:03:42Z

[-- Attachment #1: Type: text/plain, Size: 278 bytes --]

On Tue, 12 Aug 2003 23:50:06 +0900, Yoshinori Sato <ysato@users.sourceforge.jp> said:

> - while (count) {
> + while (count > 1) {

Given that count is a size_t, which seems to be derived from 'unsigned int' or
'unsigned long' on every platform, how are these any different?

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]