Re: [PATCH] Prevent gcc error on isys/eddsupport.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Cantrell (dcantrell@xxxxxxxxxx) said: 
> Getting this on eddsupport.c with latest gcc:
> eddsupport.c:171: error: offset ‘3’ outside bounds of constant string
> 
> gcc does not like the "." and ".." in strncmp() calls.  Do the same
> thing but without calling strncmp() and without declaring temporary
> variables.

Adding parentheses around strncmp (to explicitly call the function instead
of whatever optimized macro it's using) may be a shorter fix. In any
case, I filed https://bugzilla.redhat.com/show_bug.cgi?id=492973 as it's
certainly not invalid code.

Bill

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux