From b78f8bb824fcf2b8a6011a8e5e57763e97862edb Mon Sep 17 00:00:00 2001 From: pk910 Date: Sun, 27 Nov 2011 04:21:43 +0100 Subject: [PATCH] fixed inclusions and replace \n with a new line char --- Bots/CGod.class.php | 2 +- tmp/includes.h | 22 ++++++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/Bots/CGod.class.php b/Bots/CGod.class.php index 4871694..efc2bd6 100644 --- a/Bots/CGod.class.php +++ b/Bots/CGod.class.php @@ -92,7 +92,7 @@ class {$_NAME} extends Bot { $entry['channel'] = $channel; $entry['id'] = rand(1, 999999); $fp = fopen("tmp/debug_".$entry['id'].".c", "w"); - fwrite($fp, "#include \"includes.h\"\n".$exp[1]); + fwrite($fp, "#include \"includes.h\"\n".str_replace(array("\\n"), array("\n"),$exp[1])); fclose($fp); $err = shell_exec("gcc -o tmp/debug_".$entry['id']." tmp/debug_".$entry['id'].".c 2>&1"); if($err) { diff --git a/tmp/includes.h b/tmp/includes.h index f5af347..b91b474 100644 --- a/tmp/includes.h +++ b/tmp/includes.h @@ -1,11 +1,13 @@ -#include "ctype.h" -#include "float.h" -#include "iso646.h" -#include "limits.h" -#include "math.h" -#include "stddef.h" -#include "stdio.h" -#include "stdlib.h" -#include "string.h" -#include "time.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include \ No newline at end of file -- 2.20.1