Fixed regression but unsure of cause

This commit is contained in:
Jeremiah Orians 2017-06-03 12:32:01 -04:00
parent a37d738138
commit 9f14c28646
No known key found for this signature in database
GPG Key ID: 7457821534D2ACCD
1 changed files with 7 additions and 4 deletions

View File

@ -15,13 +15,16 @@
* along with stage0. If not, see <http://www.gnu.org/licenses/>.
*/
#include<stdlib.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
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)