diff options
-rw-r--r-- | inout.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5,7 +5,7 @@ | |||
5 | ** Also provides some predefined lua functions. | 5 | ** Also provides some predefined lua functions. |
6 | */ | 6 | */ |
7 | 7 | ||
8 | char *rcs_inout="$Id: inout.c,v 2.55 1997/04/04 22:24:51 roberto Exp roberto $"; | 8 | char *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 | ||