Skip to content

Commit f298595

Browse files
committed
First character of data was being skipped incorrectly.
1 parent c3f4fe4 commit f298595

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

main.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ int main(int argc, char **argv) {
120120
}
121121

122122
/* record start address of data */
123-
output_data = kernel_cmdline+idx+1;
123+
output_data = kernel_cmdline+idx;
124124

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

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

0 commit comments

Comments
 (0)