diff options
author | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-02-09 19:18:42 +0000 |
---|---|---|
committer | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-02-09 19:18:42 +0000 |
commit | 288a7ba8971be9a5d7e4e54f02b0c5013449d2e2 (patch) | |
tree | 084de5debceb828e118edd682e44e95e968dfc14 /snprintf.c | |
parent | e918663ba18d74ef01d2d0a17582b95556970664 (diff) |
Integrate Ed Meaney's <emeaney@altiga.com> changes for using libpcap
from WinDump with Ethereal. We now have packet capturing on Win32. :)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1612 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'snprintf.c')
-rw-r--r-- | snprintf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/snprintf.c b/snprintf.c index 7bf36f4deb..13cc4a3047 100644 --- a/snprintf.c +++ b/snprintf.c @@ -90,6 +90,8 @@ double r; if (r < 0.) r = -r; + if (r == 0.0) + return(0); if (r < 1.) { while (result >= r) {result *= .1; i++;} return (-i); |