... | ... |
@@ -212,6 +212,7 @@ cli_file_t cli_filetype2(fmap_t *map, const struct cl_engine *engine) |
212 | 212 |
* we just tried that above, and failed */ |
213 | 213 |
if((encoding = encoding_detect_bom(buff, bread))) { |
214 | 214 |
unsigned char decodedbuff[(MAGIC_BUFFER_SIZE+1)*2]; |
215 |
+ memset(decodedbuff, 0, sizeof(decodedbuff)); |
|
215 | 216 |
m_area_t in_area, out_area; |
216 | 217 |
|
217 | 218 |
in_area.buffer = (unsigned char *) buff; |