Bugfix for: [ 1085257 ] gets() puts linefeed in buffer
commit6e562bef3e6e82a368878f907199a0f450cae668
authormazze <mazze@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sun, 6 Apr 2008 22:23:53 +0000 (6 22:23 +0000)
committermazze <mazze@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sun, 6 Apr 2008 22:23:53 +0000 (6 22:23 +0000)
tree829389ec0397e49467ec60d8464e1b8706222d88
parent7121829454c22531240d3ce370bdcbf182992cd9
Bugfix for: [ 1085257 ] gets() puts linefeed in buffer

gets() now checks if last char is \n and replaces it by \0.

Additionally I've removed the gets macro from stdio.h to ensure that the C function is used.
This means gets() is no longer available in ROM.

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@28244 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
compiler/clib/gets.c
compiler/clib/include/stdio.h