This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 157319 [details] Bug screenshot printf("Set-Cookie: pcd=%s; expires=%s; path=/;\r\n", Row[1], CookieExpiration); This format string if notified as wrong because NetBeans treats Row[1] as char variable, not as char pointer.
Please provide declaration of Row[1]
MYSQL_ROW Row; Row is variable of MYSQL_ROW type. It contains Row requested from Mysql database. Code works fine and clear. The only wrong thing is treatment of format string with this variable.
Row is filled with this code string Row = mysql_fetch_row(Result)
To resolve the problem we need a declaration of Row including all typedefs/macros. Or provide sample project with the problem. Thanks.
This type is defined in mysql.h file with this code typedef char **MYSQL_ROW;
So example is: #include <stdio.h> typedef char **MYSQL_ROW; int foo (MYSQL_ROW Row) { printf("pcd=%s;\r\n", Row[1]); // wrong hint } int boo (char** Row) { printf("pcd=%s;\r\n", Row[1]); // no hint } int main(int argc, char** argv) { return 0; }
Exactly!
Created attachment 157365 [details] fix of bug #256574
fixed in the attached patch
I'm not expirienced in applying patches. So could you provide some link or short info about doing it on windows 10? It would be very very nice :)
fixed in change set a6bf507c3c25 (enum)
Integrated into 'main-silver', will be available in build *201511240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/5efcccad3e2f User: Danila Sergeyev <danilasergeyev@netbeans.org> Log: fix bug #256574 Wrong format string notification (transplanted from a6bf507c3c254f63252f1876397de603c2be15bf)
How about including this fix to current version. I mean it would be great if every user could press Help -> Check for updates and then install this patch. :) Is it possible?
Verified in NetBeans 8.1 with latest internal patches