Commit 2a2966aa authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

fix snprintf result handling

parent c917024f
...@@ -273,7 +273,7 @@ lutil_uuidstr( char *buf, size_t len ) ...@@ -273,7 +273,7 @@ lutil_uuidstr( char *buf, size_t len )
(unsigned) nl[2], (unsigned) nl[3], (unsigned) nl[2], (unsigned) nl[3],
(unsigned) nl[4], (unsigned) nl[5] ); (unsigned) nl[4], (unsigned) nl[5] );
return (t1 < len) ? t1 : 0; return (0 < t1 && t1 < len) ? t1 : 0;
#endif #endif
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment