newlib-2.5.0 bug report
David Binderman
dcb314@hotmail.com
Tue Apr 25 18:03:00 GMT 2017
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
More information about the Newlib
mailing list