Warning fix/Future proofing

Bug #309744 reported by Michael D. Adams
2
Affects Status Importance Assigned to Milestone
Ikarus Scheme
Fix Committed
Low
Abdulaziz Ghuloum

Bug Description

The following change fixes a warning and future proofs the code against the possibility that "helpstring" includes a "%" in it in the future.

=== modified file 'src/scheme-script.c'
--- src/scheme-script.c 2008-10-18 21:49:20 +0000
+++ src/scheme-script.c 2008-12-19 15:40:39 +0000
@@ -37,7 +37,7 @@
   arguments ... as (command-line)\n\
   \n\
   Consult the Ikarus Scheme User's Guide for more details.\n\n";
- fprintf(stderr, helpstring);
+ fprintf(stderr, "%s", helpstring);
 }

 int main(int argc, char** argv){

Related branches

Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

Fixed in 1722. Thanks.

Changed in ikarus:
assignee: nobody → aghuloum
importance: Undecided → Low
status: New → Fix Committed
Changed in ikarus:
milestone: none → 0.0.4
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.