ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/ircd.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/ircd.c (file contents):
Revision 2690 by michael, Tue Dec 10 19:30:18 2013 UTC vs.
Revision 2691 by michael, Tue Dec 17 18:55:59 2013 UTC

# Line 173 | Line 173 | static struct lgetopt myopts[] = {
173   void
174   set_time(void)
175   {
176 <  static char to_send[200];
176 >  static char to_send[IRCD_BUFSIZE];
177    struct timeval newtime;
178    newtime.tv_sec  = 0;
179    newtime.tv_usec = 0;
# Line 328 | Line 328 | write_pidfile(const char *filename)
328  
329    if ((fb = fopen(filename, "w")))
330    {
331 <    char buff[32];
331 >    char buff[IRCD_BUFSIZE];
332      unsigned int pid = (unsigned int)getpid();
333  
334      snprintf(buff, sizeof(buff), "%u\n", pid);
# Line 357 | Line 357 | static void
357   check_pidfile(const char *filename)
358   {
359    FILE *fb;
360 <  char buff[32];
360 >  char buff[IRCD_BUFSIZE];
361    pid_t pidfromfile;
362  
363    /* Don't do logging here, since we don't have log() initialised */

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)