DragonFly commits List (threaded) for 2007-08
DragonFly BSD
DragonFly commits List (threaded) for 2007-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/usr.bin/objformat objformat.c


From: Simon Schubert <corecode@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 26 Aug 2007 13:40:55 -0700 (PDT)

corecode    2007/08/26 13:40:55 PDT

DragonFly src repository

  Modified files:
    usr.bin/objformat    objformat.c 
  Log:
  Correct off-by-one error.
  
  When comparing the command names, we might wind up behind the array,
  later dereferencing a dangling pointer.  Terminate the array correctly
  and stop processing soon enough.  Additionally, correct the error
  output to use errx(), as there is no meaningful errno available.
  
  Differing behavior spotted by use of tinycc.
  
  Revision  Changes    Path
  1.24      +4 -3      src/usr.bin/objformat/objformat.c


http://www.dragonflybsd.org/cvsweb/src/usr.bin/objformat/objformat.c.diff?r1=1.23&r2=1.24&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]