On Sun, Oct 06, 2013 at 09:55:09PM +0200, Alexander Huemer wrote:
> Before the assigned value (0xFF) was truncated, reg->text[0] is of
> type char. A corresponding test for the same value in openbsc could
> only fail.

Can you please explain?

signed char a = 0xFF;
signed char b = 0xFF;

a == b => true. Even if the numerical is not the one, one expected?


> -             req->text[0] = 0xFF;
> +             req->text[0] = '\0';

but yes, we can null terminate it.


Reply via email to