DragonFly BSD
DragonFly bugs List (threaded) for 2004-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cu coredumps (fwd)


From: "Douwe Kiela" <virtus@xxxxxxxxxx>
Date: Fri, 29 Oct 2004 17:15:04 +0200

"Mark Cullen" <mark.cullen@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 ;-)





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