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

Commit4b1fe23

Browse files
committed
Prevent compiler warning from sprintf in recent ipv6 patch.
1 parent945543d commit4b1fe23

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 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_ntop.c,v 1.13 2003/06/24 22:21:22 momjian Exp $";
19+
staticconstcharrcsid[]="$Id: inet_net_ntop.c,v 1.14 2003/06/24 22:42:42 momjian Exp $";
2020
#endif
2121

2222
#include"postgres.h"
@@ -270,9 +270,9 @@ inet_cidr_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size)
270270

271271
if (!double_colon) {
272272
if (bits<128-32)
273-
cp+=SPRINTF((cp,"::",bits));
273+
cp+=SPRINTF((cp,"::%d",bits));
274274
elseif (bits<128-16)
275-
cp+=SPRINTF((cp,":0",bits));
275+
cp+=SPRINTF((cp,":0%d",bits));
276276
}
277277

278278
/* Format CIDR /width. */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp