openbsd-ports/net/kismet/patches/patch-manuf_cc
kili 43ab6c0e68 Update to 2006-04-R1, with some patches from the upstream kismet SVN.
While here, update my mail address and comment most of
the patch files.

Some WANTLIB spanking and ok, sturm@
2006-11-01 21:13:19 +00:00

18 lines
482 B
Plaintext

$OpenBSD: patch-manuf_cc,v 1.1 2006/11/01 21:13:20 kili Exp $
# From upstream SVN.
--- manuf.cc.orig Wed Jan 14 03:18:32 2004
+++ manuf.cc Fri Oct 20 15:38:06 2006
@@ -48,8 +48,8 @@ macmap<vector<manuf *> > ReadManufMap(FI
// Read from the file
char dline[8192];
while (!feof(in_file)) {
- fgets(dline, 8192, in_file);
- if (feof(in_file)) break;
+ if (fgets(dline, 8192, in_file) == NULL ||
+ feof(in_file)) break;
linenum++;