aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-01-27 19:21:27 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1998-01-27 19:21:27 -0200
commit07ff251a176f341467f66a853221da81f573b5a1 (patch)
tree17493808ada32fa6e3a84c0e5624803bdaa9b7be
parentb3b7cf7335048afa1fce4033a565b55ad5d079c2 (diff)
downloadlua-07ff251a176f341467f66a853221da81f573b5a1.tar.gz
lua-07ff251a176f341467f66a853221da81f573b5a1.tar.bz2
lua-07ff251a176f341467f66a853221da81f573b5a1.zip
details in "dostring" identification
-rw-r--r--ldo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldo.c b/ldo.c
index f0d64774..76f3af98 100644
--- a/ldo.c
+++ b/ldo.c
@@ -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);