From b438d529f13b15cb20f4470165257eb1a64bd94e Mon Sep 17 00:00:00 2001 From: "chao.an" Date: Sun, 16 Feb 2020 22:04:17 +0800 Subject: [PATCH] libs/libc/stdio/lib_getdelim.c: Correct the character slash --- libs/libc/stdio/lib_getdelim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/libc/stdio/lib_getdelim.c b/libs/libc/stdio/lib_getdelim.c index 0a1d6081262..4b63da1acfe 100644 --- a/libs/libc/stdio/lib_getdelim.c +++ b/libs/libc/stdio/lib_getdelim.c @@ -55,10 +55,10 @@ #undef HAVE_GETLINE #if defined(CONFIG_EOL_IS_CR) # define HAVE_GETLINE 1 -# define EOLCH '/r' +# define EOLCH '\r' #elif defined(CONFIG_EOL_IS_LF) # define HAVE_GETLINE 1 -# define EOLCH '/n' +# define EOLCH '\n' #endif #define BUFSIZE_INIT 64