Bugfix: Don’t access wrong parameter (Thanks atsutane)

This commit is contained in:
Michael Stapelberg 2009-11-07 16:51:10 +01:00
parent b3bee0930e
commit 876417f49d

View File

@ -386,8 +386,8 @@ workspace:
if (ws_num < 1) { if (ws_num < 1) {
LOG("Invalid workspace assignment, workspace number %d out of range\n", ws_num); LOG("Invalid workspace assignment, workspace number %d out of range\n", ws_num);
} else { } else {
if ($<string>4 != NULL) if ($<string>5 != NULL)
workspace_set_name(workspace_get(ws_num - 1), $<string>4); workspace_set_name(workspace_get(ws_num - 1), $<string>5);
} }
} }
; ;