OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Charles Longeau (chlcvs.openbsd.org)
Date: Tue Sep 25 2007 - 04:51:48 CDT


CVSROOT: /cvs
Module name: src
Changes by: chlcvs.openbsd.org 2007/09/25 03:51:48

Modified files:
        sbin/restore : interactive.c

Log message:
check fgets return value
use sizeof input intead of BUFSIZ
remove unneeded feof
handle empty strings returned by fgets
properly remove newline and white space at the end of buffer

with help and ok ray