aboutsummaryrefslogtreecommitdiff
path: root/src/temp/mkostemps.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/temp/mkostemps.c')
-rw-r--r--src/temp/mkostemps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/temp/mkostemps.c b/src/temp/mkostemps.c
index d87d4b6..8cc01e3 100644
--- a/src/temp/mkostemps.c
+++ b/src/temp/mkostemps.c
@@ -10,7 +10,7 @@ char *__randname(char *);
int __mkostemps(char *template, int len, int flags)
{
size_t l = strlen(template);
- if (l<6 || len>l-6 || strncmp(template+l-len-6, "XXXXXX", 6)) {
+ if (l<6 || len>l-6 || memcmp(template+l-len-6, "XXXXXX", 6)) {
errno = EINVAL;
return -1;
}