X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Freadline.c;h=4c67e89f0c51624a8393febaf3e7c4615acbe649;hb=bbfcd2f1a92c9bdbb8d7d7d0a8a8c6665c316747;hp=4be5f3457f6e2921f12f8a18c1abdf376500fb8b;hpb=ff3844d690fc5dace081d5b9728d7464654c5a8e;p=gnulib.git diff --git a/lib/readline.c b/lib/readline.c index 4be5f3457..4c67e89f0 100644 --- a/lib/readline.c +++ b/lib/readline.c @@ -1,5 +1,5 @@ /* readline.c --- Simple implementation of readline. - Copyright (C) 2005, 2006, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2005-2007, 2009-2013 Free Software Foundation, Inc. Written by Simon Josefsson This program is free software: you can redistribute it and/or modify @@ -48,7 +48,7 @@ readline (const char *prompt) return NULL; while (*out && (out[strlen (out) - 1] == '\r' - || out[strlen (out) - 1] == '\n')) + || out[strlen (out) - 1] == '\n')) out[strlen (out) - 1] = '\0'; return out;