diff options
Diffstat (limited to 'src/modules/filters/latin1utf8.cpp')
-rw-r--r-- | src/modules/filters/latin1utf8.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/filters/latin1utf8.cpp b/src/modules/filters/latin1utf8.cpp index 91af8dc..2a76306 100644 --- a/src/modules/filters/latin1utf8.cpp +++ b/src/modules/filters/latin1utf8.cpp @@ -18,7 +18,8 @@ char Latin1UTF8::ProcessText(char *text, int maxlen, const SWKey *key, const SWM { unsigned char *to, *from; int len; - + if ((unsigned long)key < 2) // hack, we're en(1)/de(0)ciphering + return -1; len = strlen(text) + 1; if (len == maxlen + 1) maxlen = (maxlen + 1) * FILTERPAD; |