aboutsummaryrefslogtreecommitdiff
path: root/inout.c
diff options
context:
space:
mode:
Diffstat (limited to 'inout.c')
-rw-r--r--inout.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/inout.c b/inout.c
index 25390926..8332c257 100644
--- a/inout.c
+++ b/inout.c
@@ -5,7 +5,7 @@
5** Also provides some predefined lua functions. 5** Also provides some predefined lua functions.
6*/ 6*/
7 7
8char *rcs_inout="$Id: inout.c,v 2.55 1997/04/04 22:24:51 roberto Exp roberto $"; 8char *rcs_inout="$Id: inout.c,v 2.56 1997/04/06 14:08:08 roberto Exp roberto $";
9 9
10#include <stdio.h> 10#include <stdio.h>
11#include <string.h> 11#include <string.h>
@@ -95,8 +95,8 @@ void lua_openstring (char *s)
95 char buff[SIZE_PREF+25]; 95 char buff[SIZE_PREF+25];
96 lua_setinput(stringinput); 96 lua_setinput(stringinput);
97 st = s; 97 st = s;
98 sprintf(buff, "(dostring) >> %.20s", s); 98 sprintf(buff, "(dostring) >> %.20s%s", s,
99 if (strlen(s) > SIZE_PREF) strcat(buff, "..."); 99 (strlen(s) > SIZE_PREF) ? "..." : "");
100 lua_parsedfile = luaI_createfixedstring(buff)->str; 100 lua_parsedfile = luaI_createfixedstring(buff)->str;
101} 101}
102 102