diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-11 17:40:15 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-07-11 17:40:15 +0000 |
commit | b06f254b248db04c71f685c811e4371ea8ae8ff3 (patch) | |
tree | 60b33fc0840b8fdfa0c3b60276535add038ca23c /src/helper/binarybuffer.c | |
parent | e04f0142eed242c91609fe8e913cac1fbfe0a527 (diff) |
Charles Hardin ckhardin at gmail.com
This address the >32 bit problem with drscan
also added a check for bypass in the execute since this will manifest itself
as a memory corruption when this check helps to debug the problem alot easier
git-svn-id: svn://svn.berlios.de/openocd/trunk@794 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/binarybuffer.c')
-rw-r--r-- | src/helper/binarybuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/binarybuffer.c b/src/helper/binarybuffer.c index 184d166c..12a711f8 100644 --- a/src/helper/binarybuffer.c +++ b/src/helper/binarybuffer.c @@ -188,7 +188,7 @@ int ceil_f_to_u32(float x) return y; } -char* buf_to_str(u8 *buf, int buf_len, int radix) +char* buf_to_str(const u8 *buf, int buf_len, int radix) { const char *DIGITS = "0123456789abcdef"; float factor; @@ -238,7 +238,7 @@ char* buf_to_str(u8 *buf, int buf_len, int radix) return str; } -int str_to_buf(char* str, int str_len, u8 *buf, int buf_len, int radix) +int str_to_buf(const char *str, int str_len, u8 *buf, int buf_len, int radix) { char *charbuf; u32 tmp; |