The desktop work area parser code was touched when it was factored out
of lib/unity/unity.c to services/plugins/unity/unityTclo.cpp. This
introduced a bug where the same work area was processed repeatedly
rather than parsing subsequent work areas.
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
UnityTcloSetDesktopWorkArea(RpcInData *data) // IN/OUT
{
Bool success = FALSE;
+ const char *argList;
unsigned int count;
unsigned int i;
UnityRect *workAreas = NULL;
}
}
- for (i = 0; i < count; i++) {
- const char *argList = strchr(data->args, ',');
+ for (argList = data->args, i = 0; i < count; i++) {
+ argList = strchr(argList, ',');
if (!argList) {
RPCIN_SETRETVALS(data,
"Expected comma separated display list",