diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | psplash.c | 9 |
2 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2008-08-12 Richard Purdie <rpurdie@openedhand.com> + + * psplash.c: + Allow newline terminated commands as well as null terminated ones + through the fifo. + 2008-05-27 Robert Bragg <bob@openedhand.com> * psplash-fb.c: @@ -175,6 +175,15 @@ psplash_main (PSplashFB *fb, int pipe_fd, int timeout) return; length = 0; } + else if (command[length-1] == '\n') + { + command[length-1] = '\0'; + if (parse_command(fb, command, strlen(command))) + return; + length = 0; + } + + out: end = &command[length]; |