chiark / gitweb /
fix %c $string substitution
authorSergey Vlasov <vsu@altlinux.ru>
Thu, 1 Feb 2007 19:18:52 +0000 (20:18 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 1 Feb 2007 19:18:52 +0000 (20:18 +0100)
commitc0c865d4664ea10309b0ffc12b2fad19ecb98129
tree0d44579345677649f64cdf2a1de08bdfcce9943c
parent6ff4253618303d8ab77627e4b9afe115604b07f8
fix %c $string substitution

Fix udev_rules_apply_format() to give error messages for unknown
format elements and pass such elements to the output string
unmodified.

When truncating the substitution string to the length specified in the
format string, head[len] = '\0' could write outside the buffer if that
length was too large.
udev_rules.c