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

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


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

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 5fa5c30..8322803 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];
 	struct timeval now;
 } fdleaks[1024] = { { "", }, };
 

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

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-MessageType: merged
Gerrit-Change-Id: I514927f256481bc84df10a51b19d5b5fb1bc387e
Gerrit-Change-Number: 10474
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/d1edaadd/attachment-0001.html>


More information about the asterisk-code-review mailing list