[PATCH] ussd: Fix text of RELEASE COMPLETE

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Holger Hans Peter Freyther holger at freyther.de
Tue Oct 8 09:27:49 UTC 2013


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.





More information about the OpenBSC mailing list