This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
newlib-2.5.0 bug report
- From: David Binderman <dcb314 at hotmail dot com>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Date: Tue, 25 Apr 2017 18:03:50 +0000
- Subject: newlib-2.5.0 bug report
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=hotmail.com;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
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