- (dtucker) [openbsd-compat/mktemp.c] Fix compiler warning. ok djm

This commit is contained in:
Darren Tucker 2011-10-01 18:46:12 +10:00
parent b54f50e5d0
commit 036876cd7d
2 changed files with 4 additions and 1 deletions

View File

@ -1,3 +1,6 @@
2011101
- (dtucker) [openbsd-compat/mktemp.c] Fix compiler warning. ok djm
20110929
- (djm) [configure.ac defines.h] No need to detect sizeof(char); patch
from des AT des.no

View File

@ -54,7 +54,7 @@ mktemp_internal(char *path, int slen, int mode)
int fd;
len = strlen(path);
if (len == 0 || slen >= len) {
if (len == 0 || slen < 0 || (size_t)slen >= len) {
errno = EINVAL;
return(-1);
}