libfrog: fix buffer overflow in getparents path_to_string
Codex points out rather indirectly that snprintf returns the number of
bytes that would be formatted into the buffer excluding the null
terminator. However, it won't format more bytes than the size
parameter, so the proper way to detect overflows is to compare the
return value against the size parameter. Fix that.