summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-09-01 02:43:48 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-09-01 02:43:48 -0500
commit0adc874ea7ff0716ca230d131381976bcf4b9e07 (patch)
tree4af0350c54afca2aff24e72f89f4e379e3833600
parent663551cb50703f8993b5275fe9c5bbd9bce07711 (diff)
downloadgroup-0adc874ea7ff0716ca230d131381976bcf4b9e07.tar.gz
group-0adc874ea7ff0716ca230d131381976bcf4b9e07.tar.bz2
Fix possible segfault due to not terminating va_list and (for 64-bit arch.) passing 0 to va_list and retrieving it as pointer.
-rw-r--r--group.c2
-rw-r--r--tab.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/group.c b/group.c
index 54f3fb2..2658fa8 100644
--- a/group.c
+++ b/group.c
@@ -1008,7 +1008,7 @@ groupHandleButtonPressEvent (CompScreen *s,
gs->prevX = xRoot;
gs->prevY = yRoot;
- if (!otherScreenGrabExist(s, "group", "group-drag"))
+ if (!otherScreenGrabExist(s, "group", "group-drag", NULL))
groupGrabScreen (s, ScreenGrabTabDrag);
}
}
diff --git a/tab.c b/tab.c
index 733c5e0..cb953af 100644
--- a/tab.c
+++ b/tab.c
@@ -951,7 +951,7 @@ groupUpdateTabBars (CompScreen *s,
/* do nothing if the screen is grabbed, as the frame might be drawn
transformed */
- if (!otherScreenGrabExist (s, "group", "group-drag", 0))
+ if (!otherScreenGrabExist (s, "group", "group-drag", NULL))
{
/* first check if the entered window is a frame */
for (w = s->windows; w; w = w->next)