summaryrefslogtreecommitdiff
path: root/backend/canon-sane.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2020-03-30 21:30:45 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2020-03-30 21:30:45 +0200
commitee770c2346eb37e0dcb8b6cf3eaacf3d8efd6bbc (patch)
tree58f05092be1a17a939e861f8cadcda1b6ca2ecef /backend/canon-sane.c
parent0da9e21872802cfc6e975b1ebaf9efb9e5934d84 (diff)
parentfef76e17ed4c607ea73b81279f9ef1d7121be900 (diff)
Merge branch 'release/experimental/1.0.29-1_experimental1'experimental/1.0.29-1_experimental1
Diffstat (limited to 'backend/canon-sane.c')
-rw-r--r--backend/canon-sane.c6
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);
}
}