RTEMS | shell/cat_file:Fix cat not outputting file with no newline at end (!219)
Kinsey Moore (@opticron)
gitlab at rtems.org
Thu Sep 19 20:43:37 UTC 2024
Kinsey Moore started a new discussion on cpukit/libmisc/shell/cat_file.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/219#note_112304
> }
> while ((c=fgetc(fd))!=EOF)
> fputc(c,out);
> + fputc('\n', out);
Instead of printing characters that are not part of the file, this should instead use fflush() to force a flush of the output buffer.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/219#note_112304
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240919/87ba804b/attachment-0001.htm>
More information about the bugs
mailing list