]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
force 1 byte reads for od
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 11 Dec 2020 10:57:56 +0000 (11:57 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 11 Dec 2020 10:57:56 +0000 (11:57 +0100)
pdns/incfiles

index 7d55d92301e95a15c1604ca27ecb993a2f2c84f9..09f677389731e5b6351aa1124f698b702849a3e0 100755 (executable)
@@ -7,7 +7,7 @@ for a in $@
 do
        c=$(echo $a | tr "/.-" "___")
        echo "static const unsigned char ${c}Data[] = {"
-       od -v -t x "$a" | sed  's/^[0-7]*//' | sed 's/\([0-9a-f][0-9a-f]\)/0x\1,/g'
+       od -v -t x1 "$a" | sed  's/^[0-7]*//' | sed 's/\([0-9a-f][0-9a-f]\)/0x\1,/g'
        echo "};"
        echo "static const string g_$c{(const char*)${c}Data, sizeof(${c}Data)};"
 done