jsoninfo: make sure that uuid is null-terminated
authorFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 23 Oct 2012 08:16:47 +0000 (10:16 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 23 Oct 2012 11:45:14 +0000 (13:45 +0200)
commite06961487556afb492be977ec4893e98d025f364
treef81478bf1495eed637fea296f35336caf4434081
parent6a42d773b2d142fb36cd6500490ed6b412857b36
jsoninfo: make sure that uuid is null-terminated

Since it's used as a string.

Coverity:
CID 739693 (#1 of 1): String not null terminated (STRING_NULL)
At (2): Function "fread(void * restrict, size_t, size_t, FILE * restrict)"
        does not terminate string "*uuid".
At (4): Passing unterminated string "uuid" to "strchr(char const *, int)",
        which expects a null-terminated string.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/jsoninfo/src/olsrd_jsoninfo.c
lib/jsoninfo/src/olsrd_jsoninfo.h