Skip to content
Snippets Groups Projects
Commit 93046479 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

better check of snprintf result

parent 40b685b7
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment