diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-23 00:11:31 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-23 00:11:31 +0100 |
commit | bff543bb632933380da922cbfc07c67157d72d42 (patch) | |
tree | df2e5eebc3dbd8e29153ab3a869b3be8d9be9f19 /app-crypt/aescrypt/files | |
parent | 491d0101c89d81dec507f28215b3cb094800d600 (diff) |
gentoo auto-resync : 23:06:2024 - 00:11:30
Diffstat (limited to 'app-crypt/aescrypt/files')
-rw-r--r-- | app-crypt/aescrypt/files/aescrypt-3.16-iconv.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app-crypt/aescrypt/files/aescrypt-3.16-iconv.patch b/app-crypt/aescrypt/files/aescrypt-3.16-iconv.patch new file mode 100644 index 000000000000..1993e1133e1b --- /dev/null +++ b/app-crypt/aescrypt/files/aescrypt-3.16-iconv.patch @@ -0,0 +1,24 @@ +--- a/src/password.c ++++ b/src/password.c +@@ -300,6 +300,15 @@ + size_t ic_inbytesleft, + ic_outbytesleft; + ++#ifdef DISABLE_ICONV ++ /* support only latin */ ++ int i; ++ for (i=0;i<length+1;i++) { ++ out_passwd[i*2] = in_passwd[i]; ++ out_passwd[i*2+1] = 0; ++ } ++ return length*2; ++#else + // Max length is specified in character, but this function deals + // with bytes. So, multiply by two since we are going to create a + // UTF-16 string. +@@ -349,4 +358,5 @@ + iconv_close(condesc); + + return (max_length - ic_outbytesleft); ++#endif + } |