summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-16 06:43:00 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-16 06:43:00 +0000
commit79d206efef783fbe276b37c14930c8e022482aca (patch)
tree840a00002f78b34f92d30a0a526fefdb4b354547 /ruby.c
parent4fb012a86a08bea4c25832de68910e96156ccf8f (diff)
* ruby.c (load_file): '!' is already read. reported by gotoyuzo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index f3888c8ae8..81e4b20b63 100644
--- a/ruby.c
+++ b/ruby.c
@@ -931,7 +931,7 @@ load_file(fname, script)
char *path;
char *pend = RSTRING(line)->ptr + RSTRING(line)->len;
- p = RSTRING(line)->ptr + 1; /* skip `#!' */
+ p = RSTRING(line)->ptr; /* skip `#!' */
if (pend[-1] == '\n') pend--; /* chomp line */
if (pend[-1] == '\r') pend--;
*pend = '\0';