diff --git a/Linux Bootstrap/xeh.c b/Linux Bootstrap/xeh.c index 04d5b6f..8a2ebe1 100644 --- a/Linux Bootstrap/xeh.c +++ b/Linux Bootstrap/xeh.c @@ -15,13 +15,16 @@ * along with stage0. If not, see . */ -#include +#include +#include +#include -int main (int argc, char *argv[]) +int main () { - char output[2] = {}; + char output[3] = {0}; + /* {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'} */ char table[16] = {0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, 0x38, 0x39, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46}; - char c; + uint8_t c; int col = 40; int i = read(0, &c, 1); while( i > 0)