cu coredumps (fwd)

Douwe Kiela virtus at wanadoo.nl
Fri Oct 29 08:15:04 PDT 2004


"Mark Cullen" <mark.cullen at xxxxxxxxxxxxx> schreef:
> --- hunt.c.old 2004-10-27 16:44:06.000000000 +0100
> +++ hunt.c 2004-10-27 18:58:37.000000000 +0100
> @@ -59,16 +59,34 @@
> [snip]
> + strncpy(tmp_cp, "/dev/", 6);
> + strncat(tmp_cp, cp, strlen(cp));
> [snip]
Mind you, using strlcpy() and strlcat() is advised, aswell as indenting your
source code ;-)







More information about the Bugs mailing list