diff options
-rw-r--r-- | ldo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 1.20 1997/12/26 18:38:16 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.21 1998/01/07 16:26:48 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -399,7 +399,7 @@ int lua_dostring (char *str) | |||
399 | char *temp; | 399 | char *temp; |
400 | ZIO z; | 400 | ZIO z; |
401 | if (str == NULL) return 1; | 401 | if (str == NULL) return 1; |
402 | sprintf(name, "(dostring) >> %." SSIZE_PREF "s", str); | 402 | sprintf(name, "(dostring) >> \"%." SSIZE_PREF "s\"", str); |
403 | temp = strchr(name, '\n'); | 403 | temp = strchr(name, '\n'); |
404 | if (temp) *temp = 0; /* end string after first line */ | 404 | if (temp) *temp = 0; /* end string after first line */ |
405 | luaZ_sopen(&z, str, name); | 405 | luaZ_sopen(&z, str, name); |