util: Don't use "\e"
authorBernhard Walle <bernhard@bwalle.de>
Tue, 16 Sep 2014 19:20:47 +0000 (21:20 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 28 Sep 2014 16:16:32 +0000 (19:16 +0300)
commita8833b84f46626b6fb9e9f277137f26acc72c64e
tree9190d6aabde890e828e8a636cd3746138f637c7a
parent7c33a65671d132283693eeafdf100557efc32311
util: Don't use "\e"

'\e' representing ESC (0x1b) is not C standard, it's an GNU extension.
https://gcc.gnu.org/onlinedocs/gcc/Character-Escapes.html#Character-Escapes

Since the code also compiles on Windows with Microsoft compiler, we
should use '\033' instead.

Note: I didn't try to build the whole wpa_supplicant on Windows, so I
don't know if it still builds (I have no Visual Studio 2005 for a quick
test). I just needed the string conversion routines for the P"" syntax
in both directions.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
src/utils/common.c