mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-22 18:02:20 +00:00
- (dtucker) [openbsd-compat/mktemp.c] Fix compiler warning. ok djm
This commit is contained in:
parent
b54f50e5d0
commit
036876cd7d
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user