From: | Ranier Vilela <ranier_gyn(at)hotmail(dot)com> |
---|---|
To: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | [PATCH] Fix var declaration according scanf specification, |
Date: | 2019-11-24 13:00:10 |
Message-ID: | MN2PR18MB292728135700705C5F06FE1BE34B0@MN2PR18MB2927.namprd18.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
According to specification of scanf: %x argument must be unsigned.
http://www.cplusplus.com/reference/cstdio/scanf/
I think that sscanf must follow scanf specification.
Best regards.
Ranier Vilela
--- \dll\postgresql\a\backend\utils\adt\mac.c 2019-11-23 13:19:20.000000000 -0300
+++ mac.c 2019-11-24 09:49:01.737639100 -0300
@@ -57,7 +57,7 @@
{
char *str = PG_GETARG_CSTRING(0);
macaddr *result;
- int a,
+ unsigned int a,
b,
c,
d,
Attachment | Content-Type | Size |
---|---|---|
mac.c.patch | application/octet-stream | 274 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn van Oosterhout | 2019-11-24 13:19:39 | Re: LISTEN/NOTIFY testing woes |
Previous Message | Michael Paquier | 2019-11-24 12:53:16 | Re: [HACKERS] WAL logging problem in 9.4.3? |