Closed wolfv closed 4 years ago
There is a char* == "w" here:
https://github.com/arun11299/cpp-subprocess/blob/f1a698b50e53e34db17e730c259cb60f023ccff2/subprocess.hpp#L239-L244
which never seems to succeed. Instead, using strcmp(mode, "w") == 0 works as expected.
strcmp(mode, "w") == 0
@wolfv Thanks for reporting. Would you like to provide a pull request for it ?
There is a char* == "w" here:
https://github.com/arun11299/cpp-subprocess/blob/f1a698b50e53e34db17e730c259cb60f023ccff2/subprocess.hpp#L239-L244
which never seems to succeed. Instead, using
strcmp(mode, "w") == 0
works as expected.