Fix panic when file name is too short

Closes #1204
This commit is contained in:
Alexander Neumann 2017-09-09 10:50:32 +02:00
parent b46774be21
commit 1e48141648
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ func SearchKey(ctx context.Context, s *Repository, password string, maxKeys int)
return nil, ErrMaxKeysReached
}
debug.Log("trying key %v", name[:12])
debug.Log("trying key %q", name)
key, err := OpenKey(ctx, s, name, password)
if err != nil {
debug.Log("key %v returned error %v", name[:12], err)