[Feature][ZXW-265]merge P56U03 version
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I873f6df64e2605a77b8b8bfec35b21e7f33c5444
diff --git a/ap/libc/glibc/glibc-2.23/posix/glob.c b/ap/libc/glibc/glibc-2.23/posix/glob.c
old mode 100644
new mode 100755
index 0c04c3c..a1e49ec
--- a/ap/libc/glibc/glibc-2.23/posix/glob.c
+++ b/ap/libc/glibc/glibc-2.23/posix/glob.c
@@ -807,11 +807,11 @@
char *p = mempcpy (newp, dirname + 1,
unescape - dirname - 1);
char *q = unescape;
- while (*q != '\0')
+ while (q != end_name)
{
if (*q == '\\')
{
- if (q[1] == '\0')
+ if (q + 1 == end_name)
{
/* "~fo\\o\\" unescape to user_name "foo\\",
but "~fo\\o\\/" unescape to user_name