X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsrc%2Fstring.c;h=5acee1b00100600bbfd03bb15231f1b62d0c3328;hb=a04174dc2a84ae1008c23b6a7109e7fa3fb7b8b0;hp=80cf49fdf1b297d14f0d25d43708b98c92e20660;hpb=ba74fb8d95d2e9af2122e0a95c4d5334b4f0466c;p=exim.git diff --git a/src/src/string.c b/src/src/string.c index 80cf49fdf..5acee1b00 100644 --- a/src/src/string.c +++ b/src/src/string.c @@ -3,6 +3,7 @@ *************************************************/ /* Copyright (c) University of Cambridge 1995 - 2018 */ +/* Copyright (c) The Exim Maintainers 2020 */ /* See the file NOTICE for conditions of use and distribution. */ /* Miscellaneous string-handling functions. Some are not required for @@ -574,18 +575,14 @@ uschar *ss = yield = store_get(Ustrlen(s) + 1, is_tainted(s)); while (*s != 0) { if (*s != '\\') - { *ss++ = *s++; - } else if (isdigit(s[1])) { *ss++ = (s[1] - '0')*100 + (s[2] - '0')*10 + s[3] - '0'; s += 4; } else if (*(++s) != 0) - { *ss++ = *s++; - } } *ss = 0;