Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de1699b025 |
+3
-2
@@ -9,7 +9,8 @@ int __wrap_puts(const char* s) {
|
||||
const char* str = s;
|
||||
while(*str)
|
||||
++str;
|
||||
*(char*)str='\n';
|
||||
return _bsp_write(STDOUT_FILENO, s, (str - s)+1);
|
||||
if (_bsp_write(STDOUT_FILENO, s, str - s) != str - s)
|
||||
return -1;
|
||||
return _bsp_write(STDOUT_FILENO, "\n", 1) == 1 ? 0 : -1;
|
||||
}
|
||||
weak_under_alias(puts);
|
||||
Reference in new issue
Block a user