]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/tc_util.c
tc: avoid problems with hard coded rate string length
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 6 Feb 2019 18:49:47 +0000 (10:49 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 6 Feb 2019 18:49:47 +0000 (10:49 -0800)
commit817204d0b0ee98b0849902e5b20cc3e84460b900
treea7931fb1fbaf1f5ce1bd6f9e00ba99becf234ae1
parent2d603d55a8160aa40f0a442574f1fc8dedc9a034
tc: avoid problems with hard coded rate string length

The parse_percent_rate function assumed the buffer was 20 characters.
Better to pass length in case the size ever changes.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
tc/tc_util.c