diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-16 06:43:00 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-06-16 06:43:00 +0000 |
commit | a20da17cb829887153d316b8a29c5ea8d66a68d1 (patch) | |
tree | 840a00002f78b34f92d30a0a526fefdb4b354547 /ruby.c | |
parent | ef39a9ece9f1aac8233af65abaf2e39823eb39c3 (diff) | |
download | ruby-a20da17cb829887153d316b8a29c5ea8d66a68d1.tar.gz ruby-a20da17cb829887153d316b8a29c5ea8d66a68d1.tar.xz ruby-a20da17cb829887153d316b8a29c5ea8d66a68d1.zip |
* ruby.c (load_file): '!' is already read. reported by gotoyuzo.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'; |