This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Reg. sprintf
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.
Brian