[perl #8262] //g loops infinitely on tainted data
[p5sagit/p5-mst-13.2.git] / pp_sys.c
index fe20ead..9edf430 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2182,7 +2182,7 @@ PP(pp_ioctl)
        s = INT2PTR(char*,retval);              /* ouch */
     }
 
-    TAINT_PROPER(optype == OP_IOCTL ? "ioctl" : "fcntl");
+    TAINT_PROPER(PL_op_desc[optype]);
 
     if (optype == OP_IOCTL)
 #ifdef HAS_IOCTL