Force alignmelt of inbuf variable in parser.
authorHenning Rogge <hrogge@googlemail.com>
Mon, 23 Mar 2009 12:52:40 +0000 (13:52 +0100)
committerHenning Rogge <hrogge@googlemail.com>
Mon, 23 Mar 2009 12:52:40 +0000 (13:52 +0100)
src/parser.c

index a25830c..8260fa5 100644 (file)
@@ -75,7 +75,8 @@ struct parse_function_entry *parse_functions;
 struct preprocessor_function_entry *preprocessor_functions;
 struct packetparser_function_entry *packetparser_functions;
 
-static char inbuf[MAXMESSAGESIZE + 1];
+static uint32_t inbuf_aligned[MAXMESSAGESIZE/sizeof(uint32_t) + 1];
+static char *inbuf = (char *)inbuf_aligned;
 
 static bool disp_pack_in = false;