mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-02 08:42:48 +00:00
Ouch. This was dying to cause problems !
Luckily the side-effects were what was intended.
This commit is contained in:
parent
41c6c54314
commit
72e159b70c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25636
@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
#ifndef lint
|
||||
static char rcsid[] = "$Id: main.c,v 1.10 1997/02/22 16:11:48 peter Exp $";
|
||||
static char rcsid[] = "$Id: main.c,v 1.11 1997/04/15 07:00:33 danny Exp $";
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
@ -398,7 +398,7 @@ main(argc, argv)
|
||||
/* write interface unit number to file */
|
||||
for (n = strlen(devnam); n > 0 ; n--)
|
||||
if (devnam[n] == '/') {
|
||||
n = n++;
|
||||
n++;
|
||||
break;
|
||||
}
|
||||
(void) sprintf(iffilename, "%s%s.if", _PATH_VARRUN, &devnam[n]);
|
||||
|
Loading…
Reference in New Issue
Block a user