]> diplodocus.org Git - nmh/commitdiff
get_file_info(): Don't dereference out of scope char array.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 10 Sep 2017 12:29:46 +0000 (13:29 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 10 Sep 2017 12:29:46 +0000 (13:29 +0100)
A pointer to `char buf[...]' is taken, the array being declared in a
block scope inside the function.  The pointer is passed to strdup(3) as
the function returned, but the array is by then out of scope.  Move the
array to the function's scope.  Fixes 0c50c669.


No differences found