Bryan Drewery před 7 roky
rodič
revize
d060965bae
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/crypto/bf_util.cc

+ 1 - 1
src/crypto/bf_util.cc

@@ -99,7 +99,7 @@ bd::String egg_bf_decrypt(bd::String in, const bd::String& key)
   if (in.size() < 12) return out;
 
   // Not valid base64
-  if (eggdrop_blowfish_base64_index[in[0]] == -1) return out;
+  if (eggdrop_blowfish_base64_index[int(in[0])] == -1) return out;
 
   int cut_off = in.length() % 12;
   if (cut_off > 0)