diff options
Diffstat (limited to 'backend/canon-sane.c')
-rw-r--r-- | backend/canon-sane.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/canon-sane.c b/backend/canon-sane.c index a8efc7a..cd75719 100644 --- a/backend/canon-sane.c +++ b/backend/canon-sane.c @@ -1125,9 +1125,9 @@ sane_start (SANE_Handle handle) if (thistmpfile != NULL) { - if (mktemp(thistmpfile) == 0) - { - DBG(1, "mktemp(thistmpfile) is failed\n"); + if (!mkstemp(thistmpfile)) + { + DBG(1, "mkstemp(thistmpfile) is failed\n"); return (SANE_STATUS_INVAL); } } |