NNTPC: wide spread y2k lossage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 10:23 24.02.2000 +1100, you wrote:

I forgot to mention the broken strncpy() usage in src/newgroups.c.
Supposing that "mmdd" of arg1 should be copied to the head of var d the
following modification is also helpful:

42c42
<       strncpy(d, arg1+len-4, 4);
---
>       strncpy(arg1+len-4, d, 4);

strncpy is usually defined as

	char *strncpy(char *dest, const char *src, size_t n);

Bye,
Robert


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux