diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-08 05:59:43 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-08 05:59:43 +0000 |
commit | 4f44c1704766ca3fd52b0f2790d0e91af71d9181 (patch) | |
tree | 04282446c3de315144bb4567bacf21dd7267e211 /missing | |
parent | 4c0edd6f111119ca2d4068d0ca43fe1aaf94e6cf (diff) | |
download | ruby-4f44c1704766ca3fd52b0f2790d0e91af71d9181.tar.gz ruby-4f44c1704766ca3fd52b0f2790d0e91af71d9181.tar.xz ruby-4f44c1704766ca3fd52b0f2790d0e91af71d9181.zip |
* merged a patch from Takahiro Kambe <taca@back-street.net> to
support DragonFly BSD. [ruby-dev:26984]
* object.c (rb_mod_cvar_get, rb_mod_cvar_set): document fix from
sheepman <sheepman@sheepman.sakura.ne.jp>; a bug in visibility
description. [ruby-dev:26965]
* sprintf.c (rb_f_sprintf): warn "too many argument" on verbose
mode (-v/-w); backported from 1.9. [ruby-dev:26963]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r-- | missing/strchr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/missing/strchr.c b/missing/strchr.c index 82f3cc96b..886d70ede 100644 --- a/missing/strchr.c +++ b/missing/strchr.c @@ -19,8 +19,10 @@ strrchr(s, c) char *s; int c; { - char *save = 0; + char *save; + if (c == 0) return s + strlen(s); + save = 0; while (*s) { if (*s == c) save = s; |