summaryrefslogtreecommitdiff
path: root/apps/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/misc.c b/apps/misc.c
index 12aaf08c7b..68775b36f5 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -184,15 +184,7 @@ int fast_readline(int fd, char *buf, int buf_size, void *parameters,
184 if (rc >= 0) 184 if (rc >= 0)
185 buf[pos+rc] = '\0'; 185 buf[pos+rc] = '\0';
186 186
187 if ( (p = strchr(buf, '\r')) != NULL) 187 if ( (p = strchr(buf, '\n')) != NULL)
188 {
189 *p = '\0';
190 next = ++p;
191 }
192 else
193 p = buf;
194
195 if ( (p = strchr(p, '\n')) != NULL)
196 { 188 {
197 *p = '\0'; 189 *p = '\0';
198 next = ++p; 190 next = ++p;