Commit fe4f0419 authored by Andrew Price's avatar Andrew Price
Browse files

js-duk: Ensure js_command_name_get() has enough stack

parent 30bbacf8
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1195,6 +1195,7 @@ const char *js_command_name_get(int x)
	char *name = NULL;
	int i = 0;

	duk_require_stack(ctx, 4);
	if (js_push_command_object())
		return NULL;