summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-23 06:48:52 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-23 06:48:52 +0000
commit2436525ed8cd7b95a3a98173afd23804fedf6676 (patch)
treeab7964c600ee4cae321c284523a4c832d682cc61 /file.c
parentcabf75ae6aaf9daa87442cce10a993cf70c3cf7f (diff)
* string.c (rb_str_lstrip_bang): strip NUL along with white
spaces. [ruby-talk:76659] * string.c (rb_str_rstrip_bang): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 3d2a887..1ef799c 100644
--- a/file.c
+++ b/file.c
@@ -1536,7 +1536,7 @@ file_expand_path(fname, dname, result)
long buflen;
int tainted;
- s = StringValueCStr(fname);
+ s = StringValuePtr(fname);
BUFINIT();
tainted = OBJ_TAINTED(fname);