From: Rafał Długołęcki Date: Mon, 1 Jul 2013 22:37:57 +0000 (+0200) Subject: Patched original code so it will compile on new g++ X-Git-Tag: 3.1~86 X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=6b8f07e5d114cb5436015dd1c463ad3c80d881d5;p=vlp.git Patched original code so it will compile on new g++ --- diff --git a/kernel/kernel.cpp b/kernel/kernel.cpp index 08ee51b..7ca1ec2 100644 --- a/kernel/kernel.cpp +++ b/kernel/kernel.cpp @@ -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;icount();i++) { - sprintf(line,"host=%s\n",connections->text(i)); + sprintf(line,"host=%s\n",connections->text(i).ascii()); vlp_file->writeBlock(line,strlen(line)); }