Changeset 848 for branches/ithildin-1.1


Ignore:
Timestamp:
04/30/10 01:57:25 (2 years ago)
Author:
wd
Message:
  • Fix poor allocation of time_t array
  • Fix a couple va_start/va_end pairs missed in 847
Location:
branches/ithildin-1.1/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/ithildin-1.1/modules/dns/dns.c

    r822 r848  
    163163        free(dns.pending.retry_times); 
    164164    dns.pending.retry_times = 
    165         calloc(1, sizeof(unsigned int) * (dns.pending.retries + 1)); 
     165        calloc(1, sizeof(time_t) * (dns.pending.retries + 1)); 
    166166    dns.pending.retry_times[dns.pending.retries] = dns.pending.timeout; 
    167167    for (i = dns.pending.retries - 1;i >= 0;i--) 
  • branches/ithildin-1.1/modules/ircd/send.c

    r847 r848  
    734734        return; /* nothing to do here. */ 
    735735 
    736     va_start(vl, msg); 
    737736    snprintf(lmsg, 512, ":*** Notice -- %s", msg); 
    738737    /* now just walk down the list of users and send the message off. */ 
     
    741740            continue; 
    742741 
     742        va_start(vl, msg); 
    743743        sendto_common(clp->cli->conn, NULL, ircd.me, "NOTICE", clp->cli->nick, 
    744744                lmsg, vl); 
    745     } 
    746  
    747     va_end(vl); 
     745        va_end(vl); 
     746    } 
    748747} 
    749748 
     
    757756        return; /* nothing to do here. */ 
    758757 
    759     va_start(vl, msg); 
    760758    snprintf(lmsg, 512, ":*** Notice -- %s", msg); 
    761759    /* now just walk down the list of users and send the message off. */ 
     
    767765            continue; 
    768766 
     767        va_start(vl, msg); 
    769768        sendto_common(clp->cli->conn, NULL, ircd.me, "NOTICE", clp->cli->nick, 
    770769                lmsg, vl); 
    771     } 
    772  
    773     va_end(vl); 
     770        va_end(vl); 
     771    } 
    774772} 
    775773 
     
    787785        return; /* nothing to do here. */ 
    788786 
    789     va_start(vl, msg); 
    790          
    791787    snprintf(lmsg, 512, ":*** %s -- from %s: %s", type, 
    792788            (cli != NULL ? cli->nick : srv->name), msg); 
     
    798794        /* note that we always send from ourselves still!  this isn't a 
    799795         * mistake. */ 
     796        va_start(vl, msg); 
    800797        sendto_common(clp->cli->conn, NULL, ircd.me, "NOTICE", clp->cli->nick, 
    801798                lmsg, vl); 
    802     } 
    803  
    804     va_end(vl); 
     799        va_end(vl); 
     800    } 
    805801} 
    806802 
Note: See TracChangeset for help on using the changeset viewer.