From: John Ellson Date: Thu, 10 Apr 2014 15:30:43 +0000 (-0400) Subject: minor code improvement X-Git-Tag: 2.38.0~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e6e9c10a985fdd78d017e11512cc64ee7f2a1dc;p=graphviz minor code improvement --- diff --git a/plugin/xlib/gvdevice_xlib.c b/plugin/xlib/gvdevice_xlib.c index 42c4c86db..f1a894173 100644 --- a/plugin/xlib/gvdevice_xlib.c +++ b/plugin/xlib/gvdevice_xlib.c @@ -448,7 +448,7 @@ static int handle_file_events(GVJ_t *job, int inotify_fd) case IN_ONESHOT: break; } - ln = event->len + 4 * sizeof(int); + ln = event->len + sizeof(struct inotify_event); bf += ln; len -= ln; }