Blob Blame Raw
From 4a6b133a4ce3a1d94cc0849cfd38747f0bb71595 Mon Sep 17 00:00:00 2001
From: Jan Wielemaker <J.Wielemaker@cs.vu.nl>
Date: Wed, 13 Apr 2016 13:24:16 +0200
Subject: [PATCH] FIXED: swipl-ld: enlarge buffer for processing the Prolog
 options. Ollivier Sallou.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Petr Písař <ppisar@redhat.com>
---
 src/swipl-ld.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/swipl-ld.c b/src/swipl-ld.c
index 51cb9dd..57dc83f 100644
--- a/src/swipl-ld.c
+++ b/src/swipl-ld.c
@@ -1032,11 +1032,11 @@ getPrologOptions()
     printf("\teval `%s`\n", cmd);
 
   if ( (fd = popen(cmd, "r")) )
-  { char buf[256];
+  { char buf[1024];
 
     while( fgets(buf, sizeof(buf), fd) )
     { char name[100];
-      char value[256];
+      char value[1024];
       char *v;
 
       if ( sscanf(buf, "%[^=]=%[^;\n]", name, value) == 2 )
-- 
2.5.5