Skip to content
Commit f93ae872 authored by astian's avatar astian Committed by Jean-Baptiste Kempf
Browse files

Squelch potential buffer overflow warning



GCC 7.3 points out that a buffer of size PATH_MAX is being written to
with data that can theoretically overflow (a string of maximum size
PATH_MAX plus other constant-size strings).  Fix this by replacing
sprintf with snprintf.

Signed-off-by: default avatarastian <astian@elude.in>
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent d7f5aaae
Loading
Loading
Loading
Pipeline #9157 passed with stage
in 1 minute and 28 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment