job: truncate unit description
The comment above says we're truncating the string but that's not true, an assert will fail in xsprintf if the description is longer than LINE_MAX. Let's use snprintf instead of xsprintf to make sure it's truncated. We'll cast its result to void to tell static checkers we're fine with truncation. (cherry picked from commit 574432f8)
Loading
Please register or sign in to comment