Signed-off-by: G. Campana <gcampana+kvm@xxxxxxxxxxxxx> --- virtio/9p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtio/9p.c b/virtio/9p.c index 337bf75..7185bb7 100644 --- a/virtio/9p.c +++ b/virtio/9p.c @@ -250,7 +250,7 @@ static int get_full_path_helper(char *full_path, size_t size, int ret; ret = snprintf(full_path, size, "%s/%s", dirname, name); - if (ret >= (int)sizeof(full_path)) { + if (ret >= (int)size) { errno = ENAMETOOLONG; return -1; } -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html