Patched original code so it will compile on new g++
authorRafał Długołęcki <kontakt@dlugolecki.net.pl>
Mon, 1 Jul 2013 22:37:57 +0000 (00:37 +0200)
committerRafał Długołęcki <kontakt@dlugolecki.net.pl>
Mon, 1 Jul 2013 22:37:57 +0000 (00:37 +0200)
kernel/kernel.cpp

index 08ee51b75331fd786bb83fb379f7d1b021883a71..7ca1ec2de9a4a0d652cf3e81891d554c954b6119 100644 (file)
@@ -932,7 +932,7 @@ void QKernel::SetOptions()
     unlink("vlp.cfg");
     vlp_file = new QFile("vlp.cfg");
     vlp_file->open(IO_WriteOnly);
-    sprintf(line,"progdir=%s\n",progs->text());
+    sprintf(line,"progdir=%s\n",progs->text().ascii());
     vlp_file->writeBlock(line,strlen(line));
     strcpy(progdir,progs->text());  
     sprintf(line,"node_number=%d\n",atoi(nn->text()));
@@ -943,7 +943,7 @@ void QKernel::SetOptions()
     vlp_file->writeBlock(line,strlen(line));
     for(i=0;i<connections->count();i++)
      {
-      sprintf(line,"host=%s\n",connections->text(i));
+      sprintf(line,"host=%s\n",connections->text(i).ascii());
       vlp_file->writeBlock(line,strlen(line));
      }