newlib-2.5.0 bug report
Corinna Vinschen
vinschen@redhat.com
Wed Apr 26 08:31:00 GMT 2017
On Apr 25 18:03, David Binderman wrote:
> Hello there,
>
> newlib-2.5.0/newlib/libc/sys/linux/iconv/gconv_trans.c:196]: (warning) Char literal compared with pointer 'newp.fname'. Did you intend to dereference it?
>
> Source code is
>
> strcpy ((char *) newp->fname, runp->name);
> while(newp->fname != '\0') newp->fname++;
>
> Maybe better code
>
> strcpy ((char *) newp->fname, runp->name);
> while(*(newp->fname) != '\0') newp->fname++;
>
> Regards
>
> David Binderman
Makes sense. Please send a patch.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20170426/832823be/attachment.sig>
More information about the Newlib
mailing list