summaryrefslogtreecommitdiff
path: root/sysutils/libirman/patches/patch-ab
blob: 490a24a3929224ba6a58068f7af1a7b80be7d2e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ab,v 1.2 2002/06/26 21:03:00 abs Exp $

--- ircmd.c.orig	Wed Jun 26 21:55:30 2002
+++ ircmd.c
@@ -140,10 +140,10 @@
       strcpy(rcname, home);
       rcname[hl] = '/';
       strcpy(rcname + hl+1, IR_USER_IRMANRC);
-      rcname[hl+rl+2] = '\0';
     
       rc = fopen(rcname, "r");
       if (!rc) {			/* system, eg /etc/irmanrc.conf */
+        freefile = 1;
         rcname = IR_SYSTEM_IRMANRC;
         rc = fopen(rcname, "r");
       }