[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-cvs: gaf.git: branch: master updated (1.6.1-20100214-155-g6dff7f3)
On Wednesday 17 Nov 2010 10:33:05 Patrick Bernaud wrote:
> > [...]
> > commit 6dff7f35a0ab76a2d07b8f6e68d48e638498426f
> > Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
> > Commit: Peter TB Brett <peter@xxxxxxxxxxxxx>
> >
> > gschem: Use g_strndup() instead of strndup().
> >
> > strndup() is not in the OS X libc.
> >
> > Reported-by: Matthew Wampler-Doty <matt@xxxxxxx>
>
> Or you can get rid of the memory allocation altogether and let the
> printf() shorten the commit id by itself (add a precision modifier,
> i.e. '%.7s').
I tried %7s, but that didn't work. Is the '.' required, then?
Cheers,
Peter
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs