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

Corey Farrell asteriskteam at digium.com
Fri Oct 12 12:18:17 CDT 2018


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



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/73/10473/1

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: newchange
Gerrit-Change-Id: I514927f256481bc84df10a51b19d5b5fb1bc387e
Gerrit-Change-Number: 10473
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/a266c8f4/attachment.html>


More information about the asterisk-code-review mailing list