Skip to content

Commit

Permalink
Adding active harmony patch
Browse files Browse the repository at this point in the history
  • Loading branch information
khuck committed Aug 11, 2021
1 parent e765f68 commit 686b402
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions cmake/Modules/ActiveHarmony.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
--- a/code-server/code_generator.cxx
+++ b/code-server/code_generator.cxx
@@ -574,13 +574,13 @@ int parse_slave_list(const char* hostlist)
}

// Skip leading whitespace.
- while (head < tail && (head == '\0' || isspace(*head))) {
+ while (head < tail && (*head == '\0' || isspace(*head))) {
++head;
}
host_ptr = head;

// Find host boundary whitespace.
- while (head < tail && (head != '\0' && !isspace(*head))) {
+ while (head < tail && (*head != '\0' && !isspace(*head))) {
++head;
}
host = string(host_ptr, head++);
@@ -596,7 +596,7 @@ int parse_slave_list(const char* hostlist)
}

// Skip trailing whitespace.
- while (head < tail && (head == '\0' || isspace(*head))) {
+ while (head < tail && (*head == '\0' || isspace(*head))) {
++head;
}

0 comments on commit 686b402

Please sign in to comment.