Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Sunday, October 18, 2026

Diff for dead/diplomovka/xgrafix/src/xgcrosshair.c between version 1.1 and 1.2

version 1.1, 2001/09/20 14:12:00 version 1.2, 2002/07/07 23:57:58
Line 36  int C_UpdateCrosshairProc(ClientData cl,
Line 36  int C_UpdateCrosshairProc(ClientData cl,
         else          else
                 yCoord=y * theCrosshairmy + theCrosshairby;                  yCoord=y * theCrosshairmy + theCrosshairby;
   
         sprintf(TclCommand,"%g %g\n",xCoord,yCoord);          if (snprintf(TclCommand, TclCommand_MAX, "%g %g\n", xCoord, yCoord) == -1) {
                   fprintf(stderr, "Warning: TclCommand truncated at %s:%d\n", __FILE__, __LINE__);
           }
         interp->result=TclCommand;          interp->result=TclCommand;
         return TCL_OK;          return TCL_OK;
 } // }}}  } // }}}

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top