@@ -157,7 +157,7 @@ __tunables_init (char **envp)
size_t len = 0;
/* First, find where the name ends. */
- while (p[len] != '=' && p[len] != '\0')
+ while (p[len] != '=' && p[len] != ':' && p[len] != '\0')
len++;
/* If we reach the end of the string before getting a valid name-value
@@ -165,6 +165,14 @@ __tunables_init (char **envp)
if (p[len] == '\0')
goto out;
+ /* We did not find a valid name-value pair before encountering the
+ colon. */
+ if (p[len]== ':')
+ {
+ p += len + 1;
+ continue;
+ }
+
p[len] = '\0';
p += len + 1;