Update of /cvsroot/monetdb/pathfinder/modules/pftijah/tjc
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv9611/modules/pftijah/tjc
Modified Files:
Tag: May2009
tjc_main.c tjc_parse.y
Log Message:
Fix compiler warning: format not a string literal and no format arguments.
The compiler on Ubuntu Jaunty complains about this.
U tjc_main.c
Index: tjc_main.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/tjc/tjc_main.c,v
retrieving revision 1.18
retrieving revision 1.18.2.1
diff -u -d -r1.18 -r1.18.2.1
--- tjc_main.c 22 Apr 2009 13:37:59 -0000 1.18
+++ tjc_main.c 18 May 2009 14:16:29 -0000 1.18.2.1
@@ -196,7 +196,7 @@
stream_printf(GDKerr,"#! WARNING: cannot open output file:
%s.\n",name);
return 0;
}
- fprintf(f,content);
+ fprintf(f,"%s",content);
fclose(f);
return 1;
}
U tjc_parse.y
Index: tjc_parse.y
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/modules/pftijah/tjc/tjc_parse.y,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -u -d -r1.10 -r1.10.2.1
--- tjc_parse.y 13 May 2009 07:35:03 -0000 1.10
+++ tjc_parse.y 18 May 2009 14:16:29 -0000 1.10.2.1
@@ -62,7 +62,7 @@
{
char* b = &tjc_c_GLOBAL->errBUFF[0];
*b = '\0';
- sprintf(b,err);
+ sprintf(b,"%s",err);
}
%}
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins