hysteria

ii wrapper script
git clone git://git.2f30.org/hysteria.git
Log | Files | Refs | README | LICENSE

commit e4cee418396a0056bb7c2d1a580afba0c06172f7
parent 5e3336eae703264e1f18340d6738e0fd96ec2c0f
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue Oct 28 21:44:22 +0000

highlight: fix type warning (regoff_t signed)

Diffstat:
hysteria-highlight.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/hysteria-highlight.c b/hysteria-highlight.c @@ -70,7 +70,7 @@ main(void) { * assumes line length is lower than sizeof(buffer). */ char buffer[1024]; regmatch_t match, matches[3]; - size_t len; + regoff_t len; const char *p; int hasmatch, ret; @@ -127,7 +127,8 @@ main(void) { } else { printalign(p, len, 10); } - p += len; + if(len > 0) + p += len; } hasmatch = 1;