fix potentially dangerous function
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel