Stable6 fix strlen warning

Port of  https://github.com/owncloud/updater/pull/3 to stable6