On Mon, Nov 27, 2006 at 06:13:02PM +0100, Werner Koch wrote:
> + n = strlen(s) + (defname?strlen (defname):0) + 10;
> prompt = xmalloc(n);
> if( defname )
> sprintf(prompt, "%s [%s]: ", s, defname );
...
> Note, that using snprintf would not have helped in
> this case. How I wi...
> + n = strlen(s) + (defname?strlen (defname):0) + 10;
> prompt = xmalloc(n);
> if( defname )
> sprintf(prompt, "%s [%s]: ", s, defname );
...
> Note, that using snprintf would not have helped in
> this case. How I wi...
[ more ]