summaryrefslogtreecommitdiff
path: root/ext/syslog/syslog.c
diff options
context:
space:
mode:
authorknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-25 12:23:47 +0000
committerknu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-25 12:23:47 +0000
commit09290070e8f812e72e3b20156d51bbd2a744d383 (patch)
treefe2ee6ad268eee74208384fb8a7ceb1a0c59516a /ext/syslog/syslog.c
parentb700e189bd60f68de89d5785f57edf84588b0a4a (diff)
* ext/syslog/syslog.c: Merge from rough. Use SafeStringValue().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/syslog/syslog.c')
-rw-r--r--ext/syslog/syslog.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/syslog/syslog.c b/ext/syslog/syslog.c
index 7e0e7d1..22e1e02 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;