summaryrefslogtreecommitdiff
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
parent09f10018a7d1981bdf2e66d9c752b12482a8b22c (diff)
downloadihe-ef95c077add38f12595859736edb2cc9621671bc.tar.gz
ihe-ef95c077add38f12595859736edb2cc9621671bc.zip
Add write string, write hex
-rw-r--r--cmd/cmd_write.c1
-rw-r--r--cmd/cmd_writes.c2
-rw-r--r--ihe.c4
3 files changed, 4 insertions, 3 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"
diff --git a/ihe.c b/ihe.c
index 9e0cb20..874e57c 100644
--- a/ihe.c
+++ b/ihe.c
@@ -400,8 +400,8 @@ cmd_table_t tab[] = {
{"dump", c_dump},
{"dumpx", c_dumpx},
{"dumps", c_dumps},
- //{"write", c_write},
- //{"writes", c_writes},
+ {"write", c_write},
+ {"writes", c_writes},
{"resize", c_resize},
{"flags", c_flags},
{"manifesto", c_manifesto},