file: use dynamic memory allocation for tempfile name
authorJo-Philipp Wich <jo@mein.io>
Tue, 6 Oct 2020 06:06:16 +0000 (08:06 +0200)
committerPetr Štetiar <ynezz@true.cz>
Tue, 6 Oct 2020 06:08:10 +0000 (08:08 +0200)
commit19770b6949b9a95038f3216da773204eadfdd6bc
treeb59693f90fe4136eaacf6f0dca3a9585087b1374
parentaa46546794acf5fb1f1f9bfb15152ea007e2c3c1
file: use dynamic memory allocation for tempfile name

Allocating a 4KB stack space buffer just for formatting a tempfile name
does not seem ideal.

Fixes: aa46546794ac ("file: uci_file_commit: fix memory leak")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
file.c