mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-16 20:06:06 -05:00
better check of snprintf result
This commit is contained in:
parent
40b685b70d
commit
93046479ae
1 changed files with 1 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ lutil_uuidstr( char *buf, size_t len )
|
|||
(unsigned) nl[2], (unsigned) nl[3],
|
||||
(unsigned) nl[4], (unsigned) nl[5] );
|
||||
|
||||
return (t1 < len) ? t1 : 0;
|
||||
return (0 < t1 && t1 < len) ? t1 : 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue