Coverity and build chain fixes from Nelson
authorSteve Youngs <steve@sxemacs.org>
Tue, 6 Mar 2012 07:32:06 +0000 (17:32 +1000)
committerSteve Youngs <steve@sxemacs.org>
Tue, 6 Mar 2012 07:32:06 +0000 (17:32 +1000)
commit90b5e667cb2b0ac7599d6a85415da9351350aed1
treeadd4bd5e26ecb419918190d6faaafe95331c0934
parentba7e77403bb81044ed8ece7c67e527ee813ce55e
parent8134a314ad31818920d8453577a4cd81fccc47ee
Coverity and build chain fixes from Nelson

* merges:
  Coverity: Resource leak: CID 400015
  Fix configure.ac
  Fix configure
  xstrncpy saga
  xstrncpy saga
  xstrncpy saga
  Fix tty build broken in last configure.ac changes
  Do not add tty objects when no tty is available
  Coverity: CID 400005: Division or modulo by zero
  Coverity: CID 400006: Division or modulo by zero
  Coverity: Out of bounds write: CID 21140
  Coverity: CID 400012 Overrun dynamic
  Fix build for branches without tags
  Coverity CID 400013 Printf arg type mismatch
  Coverity: CID 400031: Tainted string
  Coverity: CID 400829: Uninit
  Use dup2 if available for -t. Also check for ttyname and isatty in configure.
  Coverity: CID 400828 Resource leak
  Use AS_IF instead of if some places - be more M4sh friendly
  Update copyright, remove unused ent arguments