aboutsummaryrefslogtreecommitdiff
path: root/flx
diff options
context:
space:
mode:
authorWilly Tarreau <willy@wtap.(none)>2006-07-20 20:55:02 +0200
committerWilly Tarreau <willy@wtap.(none)>2006-07-26 11:56:43 +0200
commit02915d8d91fae1be542f302bdac1067ed64af285 (patch)
tree50eac00bc8ccffc8c96fc8904f5dc3913dcf3563 /flx
parent* flxextract-0.0.4 : fixed a few problems and now informs about missing files... (diff)
downloadflxutils-02915d8d91fae1be542f302bdac1067ed64af285.tar.xz
* flx-0.7.2 : fix hexadecimal character escape in signatures
Hexadecimal character escape was erroneously computed on signed chars which lead to invalid hex dumps for files names containing characters >=128.
Diffstat (limited to 'flx')
-rw-r--r--flx/Makefile6
-rw-r--r--flx/utils.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/flx/Makefile b/flx/Makefile
index 02b7847..6bee331 100644
--- a/flx/Makefile
+++ b/flx/Makefile
@@ -20,13 +20,13 @@
#
# File: Makefile
-# Version: 0.6
-# Date: Sun Dec 23 14:21:50 CET 2001
+# Version: 0.7.2
+# Date: Thu Jul 20 20:54:50 CET 2006
#
NAME=flx
-VERSION=0.7.1
+VERSION=0.7.2
SRC=main.c arg.c utils.c md5.c flx.c fct1.c check.c sign.c \
input.c input_fs.c input_file.c \
output.c output_file.c
diff --git a/flx/utils.c b/flx/utils.c
index 79af51c..6b0272a 100644
--- a/flx/utils.c
+++ b/flx/utils.c
@@ -146,8 +146,8 @@ char *escape_str(char *s) {
}
else {
*pbuff++ = '%';
- *pbuff++ = DEC2HEX(*s/16);
- *pbuff++ = DEC2HEX(*s%16);
+ *pbuff++ = DEC2HEX((*s >> 4) & 0xF);
+ *pbuff++ = DEC2HEX(*s & 0xF);
s++;
len += 3;
}