Skip to content
Snippets Groups Projects
Commit c600b305 authored by Georgiy Lebedev's avatar Georgiy Lebedev Committed by Vladimir Davydov
Browse files

build: fix `-Wformat-truncation` compiler warning

The path buffer's size is `PATH_MAX`, whilst we write two paths into
it, the latter (`dent->d_name`) also having a maximum size of `PATH_MAX`,
which triggers `-Wformat-truncation` compiler warning: check the return
value of `snprintf` and mimic a system error if the path got truncated.

Needed for #7862

NO_CHANGELOG=build
NO_DOC=build
NO_TEST=build
parent a62e14a0
No related branches found
No related tags found
Loading
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