We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf2cbfc commit e1829a1Copy full SHA for e1829a1
1 file changed
plugins/sudoers/editor.c
@@ -98,7 +98,7 @@ copy_arg(const char *src, size_t len)
98
if ((copy = malloc(len + 1)) != NULL) {
99
sudoers_gc_add(GC_PTR, copy);
100
for (dst = copy; src < src_end; ) {
101
- if (src[0] == '\\' && src[1] != '\0')
+ if (*src == '\\' && src + 1 < src_end)
102
src++;
103
*dst++ = *src++;
104
}
0 commit comments