better check of snprintf result

This commit is contained in:
Kurt Zeilenga 2002-10-11 02:51:09 +00:00
parent 40b685b70d
commit 93046479ae

View File

@ -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
}