PATCH] pre-process.c: [trivial] Use a larger buffer [4k] for expanding tokens

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From a6ddce6cb7026b04a186f02def8a60ccb65ee3f3 Mon Sep 17 00:00:00 2001
From: Brett Nash <nash@xxxxxxxxxx>
Date: Wed, 3 Sep 2008 08:29:26 +1000
Subject: [PATCH] pre-process.c: [trivial] Use a larger buffer [4k] for expanding tokens
 Fixes error on assert(strcmp(somefn(x),str) == 0)


Signed-off-by: Brett Nash <nash@xxxxxxxxxx>
---
 pre-process.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pre-process.c b/pre-process.c
index ca1d8ef..5269613 100644
--- a/pre-process.c
+++ b/pre-process.c
@@ -1401,7 +1401,7 @@ static int handle_endif(struct stream *stream, struct token **line, struct token
 
 static const char *show_token_sequence(struct token *token)
 {
-	static char buffer[1024];
+	static char buffer[4096];
 	char *ptr = buffer;
 	int whitespace = 0;
 
-- 
1.5.6.5


[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux