projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e48623c
)
Fix for inet_net_pton() from Tom.
author
Bruce Momjian
Mon, 12 Oct 1998 01:30:26 +0000
(
01:30
+0000)
committer
Bruce Momjian
Mon, 12 Oct 1998 01:30:26 +0000
(
01:30
+0000)
src/backend/utils/adt/inet_net_pton.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/inet_net_pton.c
b/src/backend/utils/adt/inet_net_pton.c
index 44f905f659c7d2207a3dc9e3562bc450b6b417d3..5944327402e5c5269a0b8732866009eb30e8487f 100644
(file)
--- a/
src/backend/utils/adt/inet_net_pton.c
+++ b/
src/backend/utils/adt/inet_net_pton.c
@@
-16,7
+16,7
@@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] = "$Id: inet_net_pton.c,v 1.
2 1998/10/04 15:35:09
momjian Exp $";
+static const char rcsid[] = "$Id: inet_net_pton.c,v 1.
3 1998/10/12 01:30:26
momjian Exp $";
#endif
@@
-117,7
+117,7
@@
inet_net_pton_ipv4(const char *src, u_char *dst, size_t size)
*dst |= n;
if (!dirty++)
*dst <<= 4;
- else if (
size--
> 0)
+ else if (
--size
> 0)
*++dst = 0, dirty = 0;
else
goto emsgsize;