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

Corey Farrell asteriskteam at digium.com
Fri Oct 12 12:21:38 CDT 2018


Corey Farrell has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/74/10474/1

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: newchange
Gerrit-Change-Id: I514927f256481bc84df10a51b19d5b5fb1bc387e
Gerrit-Change-Number: 10474
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20181012/2a2927ab/attachment.html>


More information about the asterisk-code-review mailing list