Skip to content

Commit

Permalink
RPC-CMD Interface: Bug Fix
Browse files Browse the repository at this point in the history
Bug Fix in RPC interface for clightning-node
Bug was caused as i was using "," (Comma) as a delimeter and the command contained a Comma(,)
This caused the string to be split mid-way.

Issue resolved

Signed-off-by: khubaibumer <[email protected]>
  • Loading branch information
khubaibumer committed Sep 16, 2020
1 parent bb5191f commit 5f3cfbf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .settings/org.eclipse.cdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
doxygen/doxygen_new_line_after_brief=true
doxygen/doxygen_use_brief_tag=false
doxygen/doxygen_use_javadoc_tags=true
doxygen/doxygen_use_pre_tag=false
doxygen/doxygen_use_structural_commands=false
eclipse.preferences.version=1
4 changes: 3 additions & 1 deletion rpc/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ void __process_cmd(void *node, char *cmd) {

char *latlong = strtok(NULL, ",");
char *tx_id = strtok(NULL, ",");
char *command = strtok(NULL, ",");
char *command = strtok(NULL, "<$#EOT#$>");

command[strlen(command) - 1] = '\0';

/* We need to repace that _ with , */
char *tmp = strchr(latlong, '_');
Expand Down

0 comments on commit 5f3cfbf

Please sign in to comment.