aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2016-07-03 14:48:55 +0100
committerFreeArtMan <dos21h@gmail.com>2016-07-03 14:48:55 +0100
commitef95c077add38f12595859736edb2cc9621671bc (patch)
tree2c3d3e5b58f8bf645ec7ac807815bbccfe6d25e4 /cmd
parent09f10018a7d1981bdf2e66d9c752b12482a8b22c (diff)
downloadihe-ef95c077add38f12595859736edb2cc9621671bc.tar.gz
ihe-ef95c077add38f12595859736edb2cc9621671bc.zip
Add write string, write hex
Diffstat (limited to 'cmd')
-rw-r--r--cmd/cmd_write.c1
-rw-r--r--cmd/cmd_writes.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/cmd/cmd_write.c b/cmd/cmd_write.c
index f5d6e01..1d4c1e9 100644
--- a/cmd/cmd_write.c
+++ b/cmd/cmd_write.c
@@ -63,7 +63,6 @@ int c_write( cmd_arg_t *arg)
return -1;
}
-
for (i=0; i<strlen(argv[0]); i+=2)
{
printf("%02x ",(unsigned char)hex2u8((unsigned char*)&argv[0][i]));
diff --git a/cmd/cmd_writes.c b/cmd/cmd_writes.c
index 1ddc95a..6b0d472 100644
--- a/cmd/cmd_writes.c
+++ b/cmd/cmd_writes.c
@@ -1,3 +1,5 @@
+#include <string.h>
+
#include "buf.h"
#include "core.h"