Home GnuPG
Diffusion GpgOL 848af2405851

Do not use ambigouis %S format character
848af2405851Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Do not use ambigouis %S format character

* src/gpgoladdin.cpp (getCustomUI): Do not use %S.

%S in swprintf used to mean "char *" but at least
in the context of Outlook this now means "wchar_t *"
the wrong interpretation causes undefined behavior
and results in crashes.

The fix is to avoid this altogether as the
rest of the code does and use %hs and %ls instead.

Details

Provenance
aheineckeAuthored on Sep 10 2015, 6:22 PM
Parents
rOd1e60f012dea: Fix doc build with texinfo 5.2
Branches
Unknown
Tags
Unknown