Clean up another signed vs. unsigned comparison warning - if
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 28 Oct 2001 01:55:10 +0000 (01:55 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 28 Oct 2001 01:55:10 +0000 (01:55 +0000)
commit957635a1f179db7dc101ab137461fceb9c8db5e9
treeaec30c2e1b01f6dc4d7f8f7705b7edff1736cfc2
parent749b4dbdd827e7b2cb5d35434f11650adddd1662
Clean up another signed vs. unsigned comparison warning - if
"snprintf()" returns a negative number, that's an error, and we assume
"errno" was set and return NULL, otherwise we cast its return value to
"size_t" and compare it with the size of the buffer we were given, and,
if it was bigger, we know that "snprintf()" didn't generate all the
characters it could be cause they wouldn't have fit, so we set "errno"
to ENOSPC and return NULL.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4095 f5534014-38df-0310-8fa8-9805f1628bb7
epan/inet_ntop.c