Commit 4df77fe7 authored by Ulrich Sibiller's avatar Ulrich Sibiller

xkbUtils.c: Catch division by zero

Fixes ArcticaProject/nx-libs#808
parent 6981e9bb
......@@ -685,6 +685,10 @@ unsigned act;
else group= newGroup;
}
else {
#ifdef NXAGENT_SERVER
/* we have seen division by zero here */
if (ctrls->num_groups != 0)
#endif
group%= ctrls->num_groups;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment