Skip to content
Commit 9074cbd7 authored by Iago López Galeiras's avatar Iago López Galeiras Committed by Zbigniew Jędrzejewski-Szmek
Browse files

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)
parent 5c939ddb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment