View Single Post
anidel's Avatar
Posts: 1,743 | Thanked: 1,231 times | Joined on Jul 2006 @ Twickenham, UK
#269
Originally Posted by edanaher View Post
So, line 858 or so of xo-print.c (I may have messed up the line numbers very slightly with my debugging stuff) is

Code:
tmpfile = mkstemp(g_strdup(TMPDIR_TEMPLATE));
tmpfile is a char*, mkstemp returns a file handle. If, instead, you use mktemp, it gives you the file name, which is then what the later functions expect.

Kind of a silly mistake... not sure where it came from, but easy to fix. I can now export pdf files with text it them, and it'll get some good stress-testing over the next week with grading.
Are you sure about that?
In my code here there is no mkstemp, but mktemp...

But anyway, I'm syncing my code with upstream 0.4.5 and Denis swtched to libpoppler and completely rewrote that function.

But weird you found this mkstemp call...

Aniello