From 5bb0236af824091e62926cf06cfad5f95dd73e75 Mon Sep 17 00:00:00 2001 From: Bill-Gray Date: Tue, 26 Sep 2023 10:27:25 -0400 Subject: [PATCH] =?UTF-8?q?'gfc=5Fxvt.c'=20(code=20to=20convert=20spherica?= =?UTF-8?q?l=20harmonics=20coefficients=20to=20a=20C=20array)=20:=20used?= =?UTF-8?q?=20a=20%40s=20specifier=20for=20a=2040-byte=20buffer,=20=20igno?= =?UTF-8?q?ring=20the=20possible=20zero=20terminator=20requiring=20a=2041-?= =?UTF-8?q?byte=20buffer.=20=20Found=20by=20gcc,=20=20reported=20by=20Fran?= =?UTF-8?q?cisco=20Oca=C3=B1a.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gfc_xvt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfc_xvt.c b/gfc_xvt.c index 4b07327..22b46dc 100644 --- a/gfc_xvt.c +++ b/gfc_xvt.c @@ -78,7 +78,7 @@ int main( const int argc, const char **argv) if( !memcmp( buff, "gfc ", 4) && atoi( buff + 3) <= max_l) { int l, m, n_scanned; - char c_term[40], s_term[40]; + char c_term[41], s_term[41]; char *tptr; n_scanned = sscanf( buff + 4, "%d %d %40s %40s", &l, &m, c_term, s_term);