diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-07-20 01:52:29 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-07-20 01:52:29 +0000 |
commit | bee76c3752d146d3468a8d930b0a1ce71c9c2016 (patch) | |
tree | cc7324236dd49675cf4629251e6e0e743b0982e5 /include | |
parent | affc626e51642fba84c219d063ce2484370e42ef (diff) |
Add VIS_DQ to escape double quotes. OK deraadt@ semarie@ reyk@
Diffstat (limited to 'include')
-rw-r--r-- | include/vis.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vis.h b/include/vis.h index 012f7194eb1..88044172884 100644 --- a/include/vis.h +++ b/include/vis.h @@ -1,4 +1,4 @@ -/* $OpenBSD: vis.h,v 1.14 2014/11/17 19:51:54 millert Exp $ */ +/* $OpenBSD: vis.h,v 1.15 2015/07/20 01:52:27 millert Exp $ */ /* $NetBSD: vis.h,v 1.4 1994/10/26 00:56:41 cgd Exp $ */ /*- @@ -50,6 +50,7 @@ #define VIS_NL 0x10 /* also encode newline */ #define VIS_WHITE (VIS_SP | VIS_TAB | VIS_NL) #define VIS_SAFE 0x20 /* only encode "unsafe" characters */ +#define VIS_DQ 0x200 /* backslash-escape double quotes */ #define VIS_ALL 0x400 /* encode all characters */ /* |