The code in getVisualStudioDir changes the string returned by getenv, and
this is forbidden. Any subsequent call to getenv returns the modified
string.

I've changed the code to initialize path using the string range constructor
(pointer returned by strstr is used like an end iterator) instead of null
terminating the string returned by getenv. I've also removed the const_cast.

Attachment: 9875.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to