Home GnuPG

Fix mkportable for short target dir names

Description

Fix mkportable for short target dir names

* src/mkportable.c (make_dirs): Use correct offset.

fname + strlen(fname) - strlen(name) could be completely
wrong if the name was larger then fname. It even read
before the allocated memory area.

Fixes: T4055

Details