examples/vhost: fix socket path parsing
authorGang Jiang <jiangg@mail.ustc.edu.cn>
Sun, 16 Apr 2017 11:39:40 +0000 (19:39 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 10 May 2017 17:05:59 +0000 (19:05 +0200)
commitfa81d3b9702a07408061f13f8f0e21a023158a77
tree764ba3396e34360967492f2773b8a60a882c6217
parent08dd403dbdd4c38b59904b8930b703505eedefd8
examples/vhost: fix socket path parsing

The return value of strnlen(s, maxlen) is never bigger than maxlen.

Fixes: 4796ad63ba1f ("examples/vhost: import userspace vhost application")

Signed-off-by: Gang Jiang <jiangg@mail.ustc.edu.cn>
examples/vhost/main.c