]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
main/astfd: Fix GCC8 format-truncation warning.
authorCorey Farrell <git@cfware.com>
Fri, 12 Oct 2018 17:21:24 +0000 (13:21 -0400)
committerCorey Farrell <git@cfware.com>
Fri, 12 Oct 2018 17:21:24 +0000 (13:21 -0400)
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

main/astfd.c

index 5fa5c30464a121301c8699c75312de1dccd3bd6c..83228039eae4d95667e3385ea00917bf1380d1b3 100644 (file)
@@ -53,7 +53,7 @@ static struct fdleaks {
        unsigned int isopen:1;
        char file[40];
        char function[25];
-       char callargs[60];
+       char callargs[100];
        struct timeval now;
 } fdleaks[1024] = { { "", }, };