From 14a85408b5851de2b3073b6677a50b3a85759700 Mon Sep 17 00:00:00 2001 From: Janos Kovacs Date: Thu, 11 Sep 2014 00:50:48 +0300 Subject: [PATCH] system-controller: increase array size to accomodate new message types Change-Id: I9af62f290c3c6aad20943b5797b29e6bae45598b Signed-off-by: Janos Kovacs --- src/plugins/system-controller/plugin-system-controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/system-controller/plugin-system-controller.c b/src/plugins/system-controller/plugin-system-controller.c index be85ca7..8b88d37 100644 --- a/src/plugins/system-controller/plugin-system-controller.c +++ b/src/plugins/system-controller/plugin-system-controller.c @@ -344,7 +344,7 @@ static int send_message(client_t *c, mrp_json_t *msg) static const char *message_name(int code) { #define MAX_CLASS 0x08 -#define MAX_TYPE 0x30 +#define MAX_TYPE 0x32 #define CLASS(code) (((code) & 0xf0000) >> 16) #define TYPE(code) (((code) & 0x0ffff)) static char *names[MAX_CLASS + 1][MAX_TYPE + 1]; -- 2.7.4