rem: QString msg(256);
add: QString msg;
context: bool kStringToFile(const QString aBuffer, const char* aFileName, 		   bool aAskIfExists, bool aBackup, bool aVerbose){  QFile file(aFileName);  QFileInfo info(aFileName);  int writeLen, len, rc;  //assert(aFileName!=NULL);  if(aFileName == NULL)    return "";  if (info.exists())  {    if (aAskIfExists)    {      QString str(256);      str.sprintf(i18n(		  "File %s exists.\nDo you want to replace it ?"),		  aFileName);      rc = QMessageBox::information(NULL, i18n("Information"),	   str, i18n("&OK"), i18n("&Cancel"),	   0, 1);      if (rc != 0) return FALSE;    }    if (aBackup)    {      // make a backup copy      QString bakName = aFileName;      bakName += '~';      unlink(bakName);      rc = rename(aFileName, bakName);      if (rc)      {	// failed to rename file	if (!aVerbose) return FALSE;	rc = QMessageBox::warning(NULL, i18n("Warning"),	     i18n(             "Failed to make a backup copy of %s.\nContinue anyway ?"),	     i18n("&OK"), i18n("&Cancel"), 0, 1);	if (rc != 0) return FALSE;      }    }  }  if (!file.open(IO_Raw|IO_WriteOnly))  {    if (aVerbose) switch(file.status())    {    case IO_WriteError:      msgDialog(i18n("Could not write to file:\n%s"), aFileName);      break;    case IO_OpenError:      msgDialog(i18n("Could not open file for writing:\n%s"),		aFileName);      break;    default:      msgDialog(i18n("Error while writing file:\n%s"),aFileName);    }    return FALSE;  }  len = aBuffer.size() - 1;  debug("kStringToFile: writing %d bytes", len);  writeLen = file.writeBlock(aBuffer.data(), len);  if (writeLen < 0)   {    msgDialog(i18n("Could not write to file:\n%s"), aFileName);    return FALSE;  }  else if (writeLen < len)  {    QString msg(256);    msg.sprintf(i18n("Could only write %d bytes of %d."),		writeLen, len);    msgDialog(msg);    return FALSE;  }   return TRUE;}