]> granicus.if.org Git - graphviz/commitdiff
minor code improvement
authorJohn Ellson <ellson@research.att.com>
Thu, 10 Apr 2014 15:30:43 +0000 (11:30 -0400)
committerJohn Ellson <ellson@research.att.com>
Thu, 10 Apr 2014 15:30:43 +0000 (11:30 -0400)
plugin/xlib/gvdevice_xlib.c

index 42c4c86dbb568f6eb15c5e20789a2e0f36cf0a51..f1a8941736f98140c5e397e45f9d4a23cc60ab4a 100644 (file)
@@ -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;
         }