X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fexamples%2Fshell.c;h=93641b45b8c3250ff3dd3582fc731668d34ebbe7;hb=837e5b7fb902bd749106309ef76a5276c73ca34c;hp=916d25267ac758a198fb4d299af7fa54edf5bfd4;hpb=58b5b585e7efb4ce7ffc3d7374fb9f5afc601a0f;p=pintos-anon diff --git a/src/examples/shell.c b/src/examples/shell.c index 916d252..93641b4 100644 --- a/src/examples/shell.c +++ b/src/examples/shell.c @@ -59,7 +59,7 @@ read_line (char line[], size_t size) switch (c) { - case '\n': + case '\r': *pos = '\0'; putchar ('\n'); return;