diff options
| author | Roy Marples <roy@marples.name> | 2019-09-19 13:57:48 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2019-09-19 13:57:48 +0100 |
| commit | 4f8eeb986d8fc429c2e1ed68ba59edc84137a843 (patch) | |
| tree | 5029265ab461810f4b523be660a0b7c7206abbe1 | |
| parent | fd8e3f93505d830df3b62e2c2f3175e409e865b1 (diff) | |
| download | dhcpcd-ui-4f8eeb986d8fc429c2e1ed68ba59edc84137a843.tar.xz | |
libdhcpcd: decode escaped \2XX and \\ correctly
| -rw-r--r-- | src/libdhcpcd/dhcpcd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libdhcpcd/dhcpcd.c b/src/libdhcpcd/dhcpcd.c index 62b21ea..1a25636 100644 --- a/src/libdhcpcd/dhcpcd.c +++ b/src/libdhcpcd/dhcpcd.c @@ -379,8 +379,12 @@ dhcpcd_decode_string_escape(char *dst, size_t dlen, const char *src) esc = *src++; switch (esc) { case '\\': + if (dst) + *dst++ = esc; + break; case '0': case '1': + case '2': case '3': case '4': case '5': |
