You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1.make
What is the expected output? What do you see instead?
openzwave-control-panel-read-only/webserver.cpp:333: warning: the use of
`mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
What version of the product are you using? On what operating system?
ubuntu 10.04 openzwave r603
Original issue reported on code.google.com by [email protected] on 28 Dec 2012 at 4:03
The text was updated successfully, but these errors were encountered:
The strncat ".xml" is never used so it should probably just be dropped. Modifying the temporary filename doesn't seem like a great idea anyway. So the other problem is that fn is a char pointer where mkstemp needs an integer since it returns a filehandle instead of a name.
That's no big deal because mkstemp will modify the buffer internally and return it.
You've got an unneeded filehandle returned, but you can deal with that in a couple of ways. You could modify doc.Savefile to accept descriptors instead of names, or just close it.
Original issue reported on code.google.com by
[email protected]
on 28 Dec 2012 at 4:03The text was updated successfully, but these errors were encountered: