INN commit: trunk (backends/actsync.c doc/pod/actsync.pod)

Russ Allbery rra at stanford.edu
Wed Aug 8 18:32:17 UTC 2007


INN Commit <Russ_Allbery at isc.org> writes:

> +    /* prepare the w_string parameter for ctlinnd time out
> +       (+3 for '-t ' and +1 for '\0') */
> +    w_size = snprintf(w_string, 0, "%d", w_flag) + 4;
> +    w_string = xmalloc(w_size);
> +    snprintf(w_string, w_size, "-t %d", w_flag);

In CURRENT, you can just use asprintf.  (There are still a lot of
instances of this construct around that need to be converted to use
asprintf instead.)

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>


More information about the inn-workers mailing list