[458] in bugtraq
Re: 8lgm's SCO "at" hole
daemon@ATHENA.MIT.EDU (John Nemeth)
Sat Dec 10 21:31:19 1994
Date: Sat, 10 Dec 1994 17:23:52 -0800
From: John Nemeth <jnemeth@cue.bc.ca>
In-Reply-To: Casper Dik <casper@fwi.uva.nl>
"Re: 8lgm's SCO "at" hole" (Dec 10, 2:22pm)
To: Casper Dik <casper@fwi.uva.nl>, Karl Strickland <karl@bagpuss.demon.co.uk>
Cc: bugtraq@fc.net
On Dec 10, 2:22pm, Casper Dik wrote:
} Subject: Re: 8lgm's SCO "at" hole
}
} Getwd() is to getcwd() what gets() is to fgets() [ well, almost ].
}
} When chosing between: getwd(char *buf) and getcwd(char *buf, size_t
} size_of_buf) the choice should be obvious.
I would have to disagree. fgets() can return any amount of data
(potentially GB if connected to a socket or very large file); whereas,
getwd() won't return anything bigger then MAXPATHLEN, so buf can be
sized appropriately.
}-- End of excerpt from Casper Dik