aboutsummaryrefslogtreecommitdiffstats
path: root/ext/syslog
diff options
context:
space:
mode:
Diffstat (limited to 'ext/syslog')
-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 7e0e7d1984..22e1e02a87 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;