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: Fri Oct 05 2007 - 09:19:05 CDT


CVSROOT: /cvs
Module name: src
Changes by: chlcvs.openbsd.org 2007/10/05 08:19:05

Modified files:
        usr.bin/learn/src: learn.c

Log message:
use strcspn to properly overwrite '\n' in fgets returned buffer
check fgets return value
use sizeof (buf) instead of hardcoded value

with help of moritz and ray
"Those seem OK" moritz "OK" ray "Looks OK" millert