X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Ftemp%2Fmkostemps.c;fp=src%2Ftemp%2Fmkostemps.c;h=8cc01e37e63a308a9d83f204b425efcffc4b0672;hp=d87d4b667b752b75a0908ac3280f3065ae0f7d7b;hb=8872e4e481d8702e68641605bba279796646773d;hpb=8d2f8064aa3d2cc7380c447dfbd8929543f36f51 diff --git a/src/temp/mkostemps.c b/src/temp/mkostemps.c index d87d4b66..8cc01e37 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; }