identification: Make written signed to fix error checking when printing ranges

This commit is contained in:
Tobias Brunner
2016-03-11 10:09:02 +01:00
parent 20df9d315c
commit 0fc8b1d03e
+3 -3
View File
@@ -980,9 +980,9 @@ int identification_printf_hook(printf_hook_data_t *data,
{
private_identification_t *this = *((private_identification_t**)(args[0]));
chunk_t proper;
char buf[BUF_LEN];
char *pos;
size_t written, len, address_size;
char buf[BUF_LEN], *pos;
size_t len, address_size;
int written;
if (this == NULL)
{