From f0fef8e21fd0459b75b3e5faf318634e5befbdaf Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 10 Feb 2013 00:46:27 +0000 Subject: Fix a readline bug. If a NUL is received, it would return end-of-file git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5633 42af7a65-404d-4744-a932-0658087f49c3 --- apps/include/readline.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/include') diff --git a/apps/include/readline.h b/apps/include/readline.h index 647778210..6da6f3fd7 100644 --- a/apps/include/readline.h +++ b/apps/include/readline.h @@ -1,7 +1,7 @@ /**************************************************************************** * apps/include/readline.h * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -85,8 +85,8 @@ extern "C" { * * Returned values: * On success, the (positive) number of bytes transferred is returned. - * A length of zero would indicated an end of file condition. An failure, - * a negated errno value is returned. + * EOF is returned to indicate either an end of file condition or a + * failure. * **************************************************************************/ -- cgit v1.2.3