gareth      2005/03/16 07:08:33

  Modified:    c/samples/SAX2Count SAX2Count.cpp
  Log:
  Fix possible overflow problem. Patch by Matthew Hall.
  
  Revision  Changes    Path
  1.30      +4 -1      xml-xerces/c/samples/SAX2Count/SAX2Count.cpp
  
  Index: SAX2Count.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/SAX2Count/SAX2Count.cpp,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- SAX2Count.cpp     8 Sep 2004 13:55:33 -0000       1.29
  +++ SAX2Count.cpp     16 Mar 2005 15:08:33 -0000      1.30
  @@ -16,6 +16,9 @@
   
   /*
   * $Log$
  +* Revision 1.30  2005/03/16 15:08:33  gareth
  +* Fix possible overflow problem. Patch by Matthew Hall.
  +*
   * Revision 1.29  2004/09/08 13:55:33  peiyongz
   * Apache License Version 2.0
   *
  @@ -248,7 +251,7 @@
            else if (!strncmp(argV[argInd], "-locale=", 8))
           {
                // Get out the end of line
  -             strcpy(localeStr, &(argV[argInd][8]));
  +             strncpy(localeStr, &(argV[argInd][8]), sizeof localeStr);
           }                    
           else
           {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to