X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Ftypes%2Fstring.c;h=3b54a2df680ea5acffbba3c6f932aff1f2da096c;hb=c34ea0fad3f9900c3b97efa229d221927422dacf;hp=a8f75a976a00dc7a08733dc252dd7a0243d07a30;hpb=df752f351b1ba0f8cd0b70ba328afa8d36bc31a9;p=babeltrace.git diff --git a/formats/ctf/types/string.c b/formats/ctf/types/string.c index a8f75a97..3b54a2df 100644 --- a/formats/ctf/types/string.c +++ b/formats/ctf/types/string.c @@ -3,7 +3,9 @@ * * Strings read/write functions. * - * Copyright 2010 - Mathieu Desnoyers + * Copyright 2010-2011 EfficiOS Inc. and Linux Foundation + * + * Author: Mathieu Desnoyers * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -16,7 +18,7 @@ * all copies or substantial portions of the Software. */ -#include +#include #include #include /* C99 limits */ #include @@ -35,7 +37,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;