Subversion Repositories wimsdev

Rev

Rev 10 | Rev 8185 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10 Rev 8155
Line 12... Line 12...
12
 *
12
 *
13
 *  You should have received a copy of the GNU General Public License
13
 *  You should have received a copy of the GNU General Public License
14
 *  along with this program; if not, write to the Free Software
14
 *  along with this program; if not, write to the Free Software
15
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
 */
16
 */
17
        /* Routines to write log files. */
17
/* Routines to write log files. */
18
 
18
 
19
char llbuf[4*MAX_LINELEN+4], *llptr;
19
char llbuf[4*MAX_LINELEN+4], *llptr;
20
char *linetab[MAX_LOGLINES];
20
char *linetab[MAX_LOGLINES];
21
int loglinecnt;
21
int loglinecnt;
22
char *logbuf, *logfname;
22
char *logbuf, *logfname;
Line 112... Line 112...
112
        if(strlen(p2)>=sizeof(llbuf)-(llptr-llbuf)-2) onelogfile(namebuf);
112
        if(strlen(p2)>=sizeof(llbuf)-(llptr-llbuf)-2) onelogfile(namebuf);
113
        snprintf(llptr,sizeof(llbuf)-(llptr-llbuf),"%s\n",p2);
113
        snprintf(llptr,sizeof(llbuf)-(llptr-llbuf),"%s\n",p2);
114
        llptr+=strlen(llptr);
114
        llptr+=strlen(llptr);
115
    }
115
    }
116
    if(namebuf[0]) onelogfile(namebuf);
116
    if(namebuf[0]) onelogfile(namebuf);
117
    free(logbuf);
117
    free(logbuf);
118
    exit(0);
118
    exit(0);
119
}
119
}
120
 
120