mtink-1.0.16-overflow.patch 421 B

123456789101112
  1. --- a/server/mtinkd.c 2012-01-15 13:03:41.000000000 +0000
  2. +++ b/server/mtinkd.c 2012-01-15 13:03:58.000000000 +0000
  3. @@ -244,7 +244,7 @@
  4. /* look for pid into /var/run/mtink(<fifo> */
  5. if ( (fp = fopen(runFile,"r")) )
  6. {
  7. - if ( fgets(ibuf, sizeof(buf), fp) )
  8. + if ( fgets(ibuf, sizeof(ibuf), fp) )
  9. {
  10. if ( (pid = atoi(ibuf)) )
  11. {