X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Ftypes%2Fstring.c;fp=formats%2Fctf%2Ftypes%2Fstring.c;h=197a7e135f276825ae9e29f85a70b20636755c13;hp=a8f75a976a00dc7a08733dc252dd7a0243d07a30;hb=670977d3f384db208f375255a83060d90075d626;hpb=d8ea2d29b07b1db11e567f7d579553b783ee52d2 diff --git a/formats/ctf/types/string.c b/formats/ctf/types/string.c index a8f75a97..197a7e13 100644 --- a/formats/ctf/types/string.c +++ b/formats/ctf/types/string.c @@ -35,7 +35,7 @@ int ctf_string_read(struct stream_pos *ppos, struct definition *definition) ctf_align_pos(pos, string_declaration->p.alignment); srcaddr = ctf_get_pos_addr(pos); - if (pos->offset == -EOF) + if (pos->offset == EOF) return -EFAULT; /* Not counting \0 */ max_len = pos->packet_size - pos->offset - 1;