CVSROOT: /cvs Module name: src Changes by: [email protected] 2021/08/15 07:45:42
Modified files:
sbin/fdisk : cmd.c misc.c misc.h user.c
Log message:
Don't check & errx() after each and every invocation of
string_from_line(). Just errx() inside string_from_line() if
getline() fails.
Use strcspn() idiom to nuke '\n' returned by getline().
No functional change.
