Fix typo

Reported by:	Lars Engels
Fix build with GCC
Fix typo
pkg query: Allow using the `?' operator in expressions.
Added a small comment about absolutepath()
absolutepath() refactoring

  Avoid unchecked malloc(3) and strlcpy(3) calls.
Check strlcpy(3) return value in pkg which.

  Since the argument is user provided, a boundary check is needed.
refactor +pkg_emit_manifest_file() and +pkg_emit_manifest_sbuf().

  Both routine shared most of their body, only the libyaml output setup
  was different. They now are simple wrapper around
  pkg_emit_manifest_generic() which can handle both sbuf and file
  arguments.
Merge branch 'master' into testing