1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

The shell can now print %.

This commit is contained in:
Jonas 'Sortie' Termansen 2011-11-23 14:07:02 +01:00
parent 2b032b0414
commit 1f4dc3d0b5

View file

@ -44,7 +44,7 @@ void command()
if ( commandsize <= commandused && codepoint != '\n' ) { continue; }
char msg[2]; msg[0] = codepoint; msg[1] = '\0';
printf(msg);
printf("%s", msg);
if ( codepoint == '\n' ) { command[commandused] = '\0'; break; }