From: <and...@us...> - 2009-11-16 12:21:45
|
Revision: 10597 http://plplot.svn.sourceforge.net/plplot/?rev=10597&view=rev Author: andrewross Date: 2009-11-16 12:21:25 +0000 (Mon, 16 Nov 2009) Log Message: ----------- Add comments about one remaining use of tmpnam in source code. Modified Paths: -------------- trunk/drivers/tk.c Modified: trunk/drivers/tk.c =================================================================== --- trunk/drivers/tk.c 2009-11-16 12:03:10 UTC (rev 10596) +++ trunk/drivers/tk.c 2009-11-16 12:21:25 UTC (rev 10597) @@ -1504,6 +1504,8 @@ if ( !pls->dp ) { + /* This of tmpnam should (?) be safe since mkfifo + will fail if the filename already exists */ iodev->fileName = (char *) tmpnam( NULL ); if ( mkfifo( iodev->fileName, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH ) < 0 ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |