diff options
Diffstat (limited to 'net/ntp/files/patch-aa')
-rw-r--r-- | net/ntp/files/patch-aa | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/ntp/files/patch-aa b/net/ntp/files/patch-aa index 2b418488de44..df54ce2e249b 100644 --- a/net/ntp/files/patch-aa +++ b/net/ntp/files/patch-aa @@ -27,12 +27,13 @@ cp++; while (cp < reqend && *cp != ',') { *tp++ = *cp++; -@@ -1870,7 +1870,7 @@ +@@ -1904,8 +1904,8 @@ cp++; - while (tp > buf) { - *tp-- = '\0'; + *tp-- = '\0'; + while (tp >= buf) { - if (!isspace((int)(*tp))) + if (!isspace((unsigned char)(*tp))) break; + *tp-- = '\0'; } reqpt = cp; |