suggested change to fgetln manpage example code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: ben
Date: Monday, April 7, 2008 - 2:01 pm

Can we really assume that sizeof(char) is 1 ?


RCS file: /cvs/src/lib/libc/stdio/fgetln.3,v
retrieving revision 1.15
diff -r1.15 fgetln.3
137c137
<                       if ((lbuf = malloc(len + 1)) == NULL)
---
NULL)
<ben@tohvaldon:/usr/src/lib/libc/stdio:633>$
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
suggested change to fgetln manpage example code, ben, (Mon Apr 7, 2:01 pm)
Re: suggested change to fgetln manpage example code, Stefan Kempf, (Mon Apr 7, 2:10 pm)
Re: suggested change to fgetln manpage example code, Tobias Ulmer, (Mon Apr 7, 2:20 pm)
Re: suggested change to fgetln manpage example code , Theo de Raadt, (Mon Apr 7, 2:37 pm)
Re: suggested change to fgetln manpage example code, Ben Calvert, (Mon Apr 7, 7:33 pm)
Re: suggested change to fgetln manpage example code, Tobias Ulmer, (Mon Apr 7, 8:49 pm)
Re: suggested change to fgetln manpage example code, Marc Espie, (Tue Apr 8, 3:05 am)