=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/units/units.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/units/units.c 2004/12/02 22:54:55 1.11 --- src/usr.bin/units/units.c 2007/02/20 01:56:12 1.12 *************** *** 1,4 **** ! /* $OpenBSD: units.c,v 1.11 2004/12/02 22:54:55 pat Exp $ */ /* $NetBSD: units.c,v 1.6 1996/04/06 06:01:03 thorpej Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: units.c,v 1.12 2007/02/20 01:56:12 ray Exp $ */ /* $NetBSD: units.c,v 1.6 1996/04/06 06:01:03 thorpej Exp $ */ /* *************** *** 153,159 **** } } while (!feof(unitfile)) { ! if (!fgets(line, 79, unitfile)) break; linenum++; lineptr = line; --- 153,159 ---- } } while (!feof(unitfile)) { ! if (!fgets(line, sizeof(line), unitfile)) break; linenum++; lineptr = line; *************** *** 713,719 **** initializeunit(&have); if (!quiet) printf("You have: "); ! if (!fgets(havestr, 80, stdin)) { if (!quiet) putchar('\n'); exit(0); --- 713,719 ---- initializeunit(&have); if (!quiet) printf("You have: "); ! if (!fgets(havestr, sizeof(havestr), stdin)) { if (!quiet) putchar('\n'); exit(0); *************** *** 724,730 **** initializeunit(&want); if (!quiet) printf("You want: "); ! if (!fgets(wantstr, 80, stdin)) { if (!quiet) putchar('\n'); exit(0); --- 724,730 ---- initializeunit(&want); if (!quiet) printf("You want: "); ! if (!fgets(wantstr, sizeof(wantstr), stdin)) { if (!quiet) putchar('\n'); exit(0);