projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* debugger/mcs51/break.c: bugfix from patch 1989966, thanks Risto Huotari
[fw/sdcc]
/
device
/
lib
/
gets.c
diff --git
a/device/lib/gets.c
b/device/lib/gets.c
old mode 100755
(executable)
new mode 100644
(file)
index
005a2a0
..
be5ee73
--- a/
device/lib/gets.c
+++ b/
device/lib/gets.c
@@
-1,7
+1,6
@@
#include <stdio.h>
-char * gets(const char *str) {
- char *s=str;
+char * gets(char *s) {
char c;
unsigned int count=0;
@@
-22,7
+21,7
@@
char * gets(const char *str) {
putchar('\r');
putchar('\n');
*s=0;
- return s
tr
;
+ return s;
default:
*s++=c;
count++;