On Sat, 8 Dec 2012 13:26:36 +0100 dieter roelants <diete...@bsdusr.net> said:
> > Hi, > > The screenshot module makes use of the mkstemps fuction which is > non-standard. (NetBSD doesn't have it, for example.) Also, the way it is > used, it leaks a file descriptor, and the return value isn't checked > correctly. Because the file is unlinked shortly after creating, I > didn't think it necessary to use a mkstemp like function and patched it > locally with the attached diff. Any comments? i have a better idea. use rand() as opposed to linear increment (in a for loop) and use fdopen too... i've put the modified idea in code. no more mkstemps(). :) -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel