Verify 'path' is a Ruby string
This commit is contained in:
parent
3528765df4
commit
9f6eb714dc
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ int
|
|||
bsdcontrol_open(VALUE path)
|
||||
{
|
||||
int fd;
|
||||
Check_Type(path, T_STRING);
|
||||
fd = open(RSTRING_PTR(path), O_PATH);
|
||||
if (fd == -1)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue