diff options
author | Werner Koch <[email protected]> | 2010-10-20 15:06:15 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-10-20 15:06:15 +0000 |
commit | 960df54ce8d479b42813dc14789cbf9299e207b0 (patch) | |
tree | f2857302a3dfa5f0361f5d13b833ebfe7aac76ce /src/gpg-error.c | |
parent | Fix initialization of static libs (diff) | |
download | libgpg-error-960df54ce8d479b42813dc14789cbf9299e207b0.tar.gz libgpg-error-960df54ce8d479b42813dc14789cbf9299e207b0.zip |
Fix for W32CE.
Diffstat (limited to 'src/gpg-error.c')
-rw-r--r-- | src/gpg-error.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpg-error.c b/src/gpg-error.c index 4b3c19a..fa868ae 100644 --- a/src/gpg-error.c +++ b/src/gpg-error.c @@ -131,6 +131,12 @@ get_locale_dir (void) p = strrchr (result, '\\'); if (p) *p = 0; + /* If we are installed below "bin" strip that part and + use the top directory instead. */ + p = strrchr (result, '\\'); + if (p && !strcmp (p+1, "bin")) + *p = 0; + /* Append the static part. */ strcat (result, SLDIR); } } |