Skip to content

Commit

Permalink
First character of data was being skipped incorrectly.
Browse files Browse the repository at this point in the history
  • Loading branch information
PartialVolume committed Jan 12, 2021
1 parent c3f4fe4 commit f298595
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ int main(int argc, char **argv) {
}

/* record start address of data */
output_data = kernel_cmdline+idx+1;
output_data = kernel_cmdline+idx;

/* Is the first character a double quote? i.e "--method=dod --rounds=2" */
if ( kernel_cmdline[ idx ] == '"' && kernel_cmdline[ idx ] != 0 )
Expand Down Expand Up @@ -161,6 +161,3 @@ int main(int argc, char **argv) {
return 2;
}

/* INFO for call scrit for use in script https://stackoverflow.com/questions/36921658/save-command-output-on-variable-and-check-exit-status )
* so i can assign the output of this program to a bash variable and check for return value of 0
*/

0 comments on commit f298595

Please sign in to comment.