[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ayttm-commits] CVS: ayttm/src service.c,1.6,1.7
From: |
Colin Leroy <address@hidden> |
Subject: |
[Ayttm-commits] CVS: ayttm/src service.c,1.6,1.7 |
Date: |
Fri, 17 Jan 2003 14:01:01 -0500 |
Update of /cvsroot/ayttm/ayttm/src
In directory subversions:/tmp/cvs-serv23160/src
Modified Files:
service.c
Log Message:
fix crash with log renaming
Index: service.c
===================================================================
RCS file: /cvsroot/ayttm/ayttm/src/service.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- service.c 16 Jan 2003 17:28:26 -0000 1.6
+++ service.c 17 Jan 2003 19:00:59 -0000 1.7
@@ -266,10 +266,12 @@
fclose(test);
test = fopen(newnicklog,"a");
- while (fgets(read_buffer, 4096, oldfile) != NULL)
- fputs(read_buffer,test);
+ if (oldfile) {
+ while (fgets(read_buffer, 4096, oldfile) != NULL)
+ fputs(read_buffer,test);
- fclose(oldfile);
+ fclose(oldfile);
+ }
fclose(test);
unlink(oldnicklog);
eb_debug(DBG_CORE,"Copied log from %s to %s\n", oldnicklog,
newnicklog);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Ayttm-commits] CVS: ayttm/src service.c,1.6,1.7,
Colin Leroy <address@hidden> <=
- Prev by Date:
[Ayttm-commits] CVS: ayttm configure.in,1.141,1.142 ChangeLog,1.145,1.146
- Next by Date:
[Ayttm-commits] CVS: ayttm ChangeLog,1.146,1.147 configure.in,1.142,1.143
- Previous by thread:
[Ayttm-commits] CVS: ayttm configure.in,1.141,1.142 ChangeLog,1.145,1.146
- Next by thread:
[Ayttm-commits] CVS: ayttm ChangeLog,1.146,1.147 configure.in,1.142,1.143
- Index(es):