X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ftemp%2Fmkostemps.c;h=8cc01e37e63a308a9d83f204b425efcffc4b0672;hb=d4c04d1360ca0f9dfe1b8b1454f0bd1688cdc066;hp=d87d4b667b752b75a0908ac3280f3065ae0f7d7b;hpb=8d2f8064aa3d2cc7380c447dfbd8929543f36f51;p=musl 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; }