Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 6a3238430c7845e624bad241e8c14036 > files > 1

kiso-0.8.3-10mdv2009.0.src.rpm

--- dirops.cpp.orig	2008-03-29 11:00:20.000000000 +0100
+++ dirops.cpp	2008-03-29 11:11:14.000000000 +0100
@@ -437,15 +437,16 @@ bool FindEncryption (QString Selected)
 {
  QFile sourcefile (Selected);
  sourcefile.open( IO_ReadOnly );
- char buffer[17];
+ char buffer[18];
  sourcefile.readBlock (buffer, 16);
- buffer[17]='\n';
+ buffer[16]='\n';
+ buffer[17]='\0';
  QString Identify=&buffer[2];
  sourcefile.close();
  if (Identify.contains("rijndael-128",FALSE))
- return true;
+   return true;
  else
- return false;
+   return false;
 }
 
 QString PrepforShell (QString Selected)