Suppress some gcc compiler warnings.
authorHiroshi Inoue <h-inoue@dream.email.ne.jp>
Wed, 23 Sep 2020 07:46:58 +0000 (16:46 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Sat, 26 Sep 2020 06:41:24 +0000 (15:41 +0900)
convert.c
info.c

index 47539de3ae923878c15cfc354fdda6e6705d722f..75f12a2db1d923708f5ba9b6b6d071af9856c3f6 100644 (file)
--- a/convert.c
+++ b/convert.c
@@ -1649,7 +1649,7 @@ MYLOG(DETAIL_LOG_LEVEL, "2stime fr=%d\n", std_time.fr);
                    int wdt;
                    int fr = effective_fraction(std_time.fr, &wdt);
 
-                   len = SPRINTF_FIXED(midtemp, "%s.%0*d", midtemp, wdt, fr);
+                   len = SPRINTFCAT_FIXED(midtemp, ".%0*d", wdt, fr);
                }
                break;
 
diff --git a/info.c b/info.c
index f19032147ee1794e9685e7bc88293df6769c49c9..58a0ea7020d163753b3feb838c7db5425aa74055 100644 (file)
--- a/info.c
+++ b/info.c
@@ -2676,7 +2676,7 @@ MYLOG(0, " and the data=%s\n", attdef);
                    if (!setIdentity &&
                        CC_fake_mss(conn))
                    {
-                       char    tmp[32];
+                       char    tmp[256];
 
                        SPRINTF_FIXED(tmp, "%s identity", field_type_name);
                        set_tuplefield_string(&tuple[COLUMNS_TYPE_NAME], tmp);