diff options
Diffstat (limited to 'src/options.c')
-rw-r--r-- | src/options.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c index 1885f83..360e85d 100644 --- a/src/options.c +++ b/src/options.c @@ -126,7 +126,9 @@ buffer_t options_parse_hex_string(const char* hex) const char* ptr = hex; int i; for(i=0;i<buffer.length_;++i) { - sscanf(ptr, "%2X", &buffer.buf_[i]); + u_int32_t tmp; + sscanf(ptr, "%2X", &tmp); + buffer.buf_[i] = (u_int8_t)tmp; ptr += 2; } |