summaryrefslogtreecommitdiff
path: root/sysutils/libirman/patches/patch-ab
blob: 867b99d1851d494a2e38ef6efa1dc3a459c1e206 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ab,v 1.3 2002/06/26 22:51:48 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 = 0;
         rcname = IR_SYSTEM_IRMANRC;
         rc = fopen(rcname, "r");
       }