Reg. sprintf

Brian Dessent
Tue May 30 15:39:00 GMT 2006

Vivek Katakam wrote:

> When compilation i was getting this error thrown by the compiler and
> so I have used that:
> the use of `mktemp' is dangerous, better use `mkstemp'

This message is telling you that using 'mktemp' is not secure and can
lead to vulnerabilities.  It does not mean that you can simply change
all references to 'mktemp' to 'mkstemp' without refactoring the code to
account for the fact that they work differently.


More information about the Gcc-help mailing list