stac

Static C in HTML - simple static site generator
git clone git://git.kocotian.pl/stacinhtml.git
Log | Files | Refs | README | LICENSE

commit c915a35e9b5c414a2c45d63e76bb034d7ed5d543
parent 0c1f8b935f4f1eaca83d57b99749bba88a483dcd
Author: kocotian <kocotian@kocotian.pl>
Date:   Thu, 29 Jul 2021 14:29:11 +0000

Fixed 'hex escape sequence out of range' warning

Diffstat:
Mcompile.c | 2+-
Mconfig.mk | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/compile.c b/compile.c @@ -84,7 +84,7 @@ generateCode(int fd, String input, int c_mode) while (++i < input.len) { if (*input.data == '\n') dprintf(fd, "\"\n\""); - dprintf(fd, "\\x%02x", *(input.data++)); + dprintf(fd, "\\%03o", *(input.data++)); } dprintf(fd, "\", %ld);", input.len); } diff --git a/config.mk b/config.mk @@ -1,7 +1,7 @@ # basics MAJORVERSION = 0 SUBVERSION = 2 -PATCHLEVEL = 3 +PATCHLEVEL = 4 BUILDNAME = vanilla VERSION = ${MAJORVERSION}.${SUBVERSION}.${PATCHLEVEL}-${BUILDNAME}