... | ... |
@@ -200,7 +200,7 @@ cli_file_t cli_filetype2(fmap_t *map, const struct cl_engine *engine) |
200 | 200 |
* If we can't don't try to detect HTML sig, since |
201 | 201 |
* we just tried that above, and failed */ |
202 | 202 |
if((encoding = encoding_detect_bom(buff, bread))) { |
203 |
- unsigned char decodedbuff[sizeof(buff)*2]; |
|
203 |
+ unsigned char decodedbuff[(MAGIC_BUFFER_SIZE+1)*2]; |
|
204 | 204 |
m_area_t in_area, out_area; |
205 | 205 |
|
206 | 206 |
in_area.buffer = (unsigned char *) buff; |