[Asterisk-code-review] main/astfd: Fix GCC8 format-truncation warning. (asterisk[13])

George Joseph asteriskteam at digium.com
Mon Oct 15 10:34:34 CDT 2018


George Joseph has submitted this change and it was merged. ( https://gerrit.asterisk.org/10473 )

Change subject: main/astfd: Fix GCC8 format-truncation warning.
......................................................................

main/astfd: Fix GCC8 format-truncation warning.

The field used to store call arguments was not large enough to hold the
arguments string that can be constructed for 'open'.  Expand it to
prevent this warning/error.

Change-Id: I514927f256481bc84df10a51b19d5b5fb1bc387e
---
M main/astfd.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Richard Mudgett: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved; Approved for Submit



diff --git a/main/astfd.c b/main/astfd.c
index e9bc142..7f9a0d9 100644
--- a/main/astfd.c
+++ b/main/astfd.c
@@ -53,7 +53,7 @@
 	unsigned int isopen:1;
 	char file[40];
 	char function[25];
-	char callargs[60];
+	char callargs[100];
 } fdleaks[1024] = { { "", }, };
 
 /* COPY does ast_copy_string(dst, src, sizeof(dst)), except:

-- 
To view, visit https://gerrit.asterisk.org/10473
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: merged
Gerrit-Change-Id: I514927f256481bc84df10a51b19d5b5fb1bc387e
Gerrit-Change-Number: 10473
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2 (1000185)
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181015/9f445b4d/attachment-0001.html>


More information about the asterisk-code-review mailing list