Deleted Added
full compact
crunchide.c (97280) crunchide.c (167260)
1/* $NetBSD: crunchide.c,v 1.8 1997/11/01 06:51:45 lukem Exp $ */
1/* $NetBSD: crunchide.c,v 1.8 1997/11/01 06:51:45 lukem Exp $ */
2/* $FreeBSD: head/usr.sbin/crunch/crunchide/crunchide.c 97280 2002-05-25 13:39:20Z ru $ */
2/* $FreeBSD: head/usr.sbin/crunch/crunchide/crunchide.c 167260 2007-03-06 09:32:41Z kevlo $ */
3/*
4 * Copyright (c) 1997 Christopher G. Demetriou. All rights reserved.
5 * Copyright (c) 1994 University of Maryland
6 * All Rights Reserved.
7 *
8 * Permission to use, copy, modify, distribute, and sell this software and its
9 * documentation for any purpose is hereby granted without fee, provided that
10 * the above copyright notice appear in all copies and that both that

--- 175 unchanged lines hidden (view full) ---

186 char symbol[1024];
187 int len;
188
189 if((keepf = fopen(filename, "r")) == NULL) {
190 perror(filename);
191 usage();
192 }
193
3/*
4 * Copyright (c) 1997 Christopher G. Demetriou. All rights reserved.
5 * Copyright (c) 1994 University of Maryland
6 * All Rights Reserved.
7 *
8 * Permission to use, copy, modify, distribute, and sell this software and its
9 * documentation for any purpose is hereby granted without fee, provided that
10 * the above copyright notice appear in all copies and that both that

--- 175 unchanged lines hidden (view full) ---

186 char symbol[1024];
187 int len;
188
189 if((keepf = fopen(filename, "r")) == NULL) {
190 perror(filename);
191 usage();
192 }
193
194 while(fgets(symbol, 1024, keepf)) {
194 while(fgets(symbol, sizeof(symbol), keepf)) {
195 len = strlen(symbol);
196 if(len && symbol[len-1] == '\n')
197 symbol[len-1] = '\0';
198
199 add_to_keep_list(symbol);
200 }
201 fclose(keepf);
202}

--- 66 unchanged lines hidden ---
195 len = strlen(symbol);
196 if(len && symbol[len-1] == '\n')
197 symbol[len-1] = '\0';
198
199 add_to_keep_list(symbol);
200 }
201 fclose(keepf);
202}

--- 66 unchanged lines hidden ---