On 11/04/16 15:08, Wei Liu wrote: > Both be_domid and fe_domid are unsigned. > > Reported-by: Olaf Hering <o...@aepfle.de> > Signed-off-by: Wei Liu <wei.l...@citrix.com>
Reviewed-by: Juergen Gross <jgr...@suse.com> > --- > Cc: Ian Jackson <ian.jack...@eu.citrix.com> > Cc: Juergen Gross <jgr...@suse.com> > Cc: Chunyan Liu <cy...@suse.com> > --- > tools/libxl/libxl_pvusb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/libxl/libxl_pvusb.c b/tools/libxl/libxl_pvusb.c > index c66733b..9f1e842 100644 > --- a/tools/libxl/libxl_pvusb.c > +++ b/tools/libxl/libxl_pvusb.c > @@ -350,7 +350,7 @@ static const char *vusb_be_from_xs_fe(libxl__gc *gc, > const char *fe_path, > > /* Check to see that it has the proper form, and that fe_domid == > * target domid */ > - r = sscanf(be_path, "/local/domain/%d/backend/%15[^/]/%d", > + r = sscanf(be_path, "/local/domain/%u/backend/%15[^/]/%u", > &be_domid, be_type, &fe_domid); > > if (r != 3 || fe_domid != tgt_domid) { > _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel