diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index d57d7fdf8..237c01823 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -1,5 +1,5 @@ // -// "$Id: fluid.cxx,v 1.15.2.13.2.45 2004/09/07 20:59:16 easysw Exp $" +// "$Id: fluid.cxx,v 1.15.2.13.2.46 2004/09/08 15:42:47 easysw Exp $" // // FLUID main entry for the Fast Light Tool Kit (FLTK). // @@ -713,7 +713,7 @@ do_shell_command(Fl_Return_Button*, void*) { shell_run_buffer->append("\n"); shell_run_window->label("Shell Command Running..."); - if ((shell_pipe = popen(command, "r")) == NULL) { + if ((shell_pipe = popen((char *)command, "r")) == NULL) { fl_alert("Unable to run shell command: %s", strerror(errno)); return; } @@ -886,5 +886,5 @@ int main(int argc,char **argv) { } // -// End of "$Id: fluid.cxx,v 1.15.2.13.2.45 2004/09/07 20:59:16 easysw Exp $". +// End of "$Id: fluid.cxx,v 1.15.2.13.2.46 2004/09/08 15:42:47 easysw Exp $". // diff --git a/src/Fl_Text_Buffer.cxx b/src/Fl_Text_Buffer.cxx index e5e4e17a0..9cd61926a 100644 --- a/src/Fl_Text_Buffer.cxx +++ b/src/Fl_Text_Buffer.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Text_Buffer.cxx,v 1.9.2.21 2004/06/01 20:33:26 easysw Exp $" +// "$Id: Fl_Text_Buffer.cxx,v 1.9.2.22 2004/09/08 15:42:47 easysw Exp $" // // Copyright 2001-2004 by Bill Spitzak and others. // Original code Copyright Mark Edel. Permission to distribute under @@ -942,7 +942,7 @@ int Fl_Text_Buffer::expand_character( char c, int indent, char *outStr, int tabD /* Convert control codes to readable character sequences */ /*... is this safe with international character sets? */ if ( ( ( unsigned char ) c ) <= 31 ) { - sprintf( outStr, "<%s>", ControlCodeTable[ c ] ); + sprintf( outStr, "<%s>", ControlCodeTable[ ( unsigned char ) c ] ); return strlen( outStr ); } else if ( c == 127 ) { sprintf( outStr, "" ); @@ -969,7 +969,7 @@ int Fl_Text_Buffer::character_width( char c, int indent, int tabDist, char nullS if ( c == '\t' ) return tabDist - ( indent % tabDist ); else if ( ( ( unsigned char ) c ) <= 31 ) - return strlen( ControlCodeTable[ c ] ) + 2; + return strlen( ControlCodeTable[ ( unsigned char ) c ] ) + 2; else if ( c == 127 ) return 5; else if ( c == nullSubsChar ) @@ -2517,5 +2517,5 @@ Fl_Text_Buffer::outputfile(const char *file, int start, int end, int buflen) { // -// End of "$Id: Fl_Text_Buffer.cxx,v 1.9.2.21 2004/06/01 20:33:26 easysw Exp $". +// End of "$Id: Fl_Text_Buffer.cxx,v 1.9.2.22 2004/09/08 15:42:47 easysw Exp $". //