Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit377b5fa

Browse files
committed
Fix for inet_net_pton() from Tom.
1 parente48623c commit377b5fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/utils/adt/inet_net_pton.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
#if defined(LIBC_SCCS)&& !defined(lint)
19-
staticconstcharrcsid[]="$Id: inet_net_pton.c,v 1.2 1998/10/04 15:35:09 momjian Exp $";
19+
staticconstcharrcsid[]="$Id: inet_net_pton.c,v 1.3 1998/10/12 01:30:26 momjian Exp $";
2020

2121
#endif
2222

@@ -117,7 +117,7 @@ inet_net_pton_ipv4(const char *src, u_char *dst, size_t size)
117117
*dst |=n;
118118
if (!dirty++)
119119
*dst <<=4;
120-
elseif (size-->0)
120+
elseif (--size>0)
121121
*++dst=0,dirty=0;
122122
else
123123
gotoemsgsize;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp