diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-25 12:23:47 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-02-25 12:23:47 +0000 |
commit | 5af6603f6025d658860edf97b7e6d04fa669c441 (patch) | |
tree | fe2ee6ad268eee74208384fb8a7ceb1a0c59516a /ext/syslog | |
parent | b4c5f4fa84544047ce6482ff2423bebacc3eb83a (diff) | |
download | ruby-5af6603f6025d658860edf97b7e6d04fa669c441.tar.gz ruby-5af6603f6025d658860edf97b7e6d04fa669c441.tar.xz ruby-5af6603f6025d658860edf97b7e6d04fa669c441.zip |
* ext/syslog/syslog.c: Merge from rough. Use SafeStringValue().
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syslog')
-rw-r--r-- | ext/syslog/syslog.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/syslog/syslog.c b/ext/syslog/syslog.c index 7e0e7d198..22e1e02a8 100644 --- a/ext/syslog/syslog.c +++ b/ext/syslog/syslog.c @@ -3,7 +3,7 @@ * Amos Gouaux, University of Texas at Dallas * <amos+ruby@utdallas.edu> * - * $RoughId: syslog.c,v 1.20 2002/02/25 08:20:14 knu Exp $ + * $RoughId: syslog.c,v 1.21 2002/02/25 12:21:17 knu Exp $ * $Id$ */ @@ -62,7 +62,11 @@ static VALUE mSyslog_open(int argc, VALUE *argv, VALUE self) fac = INT2NUM(LOG_USER); } +#ifdef SafeStringValue + SafeStringValue(ident); +#else Check_SafeStr(ident); +#endif syslog_ident = ident; syslog_options = opt; syslog_facility = fac; |