kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 0ca08114bb9347dd742bb910d9420c532511af69
parent edd7a1077372d8df5ac3fa0656c96072d7808ccc
Author: Joris Vink <joris@coders.se>
Date:   Thu,  9 Mar 2017 16:55:04 +0100

unbreak flavor cflags

Diffstat:
src/cli.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/cli.c b/src/cli.c @@ -188,7 +188,8 @@ static void cli_buildopt_mime(struct buildopt *, const char *); static void cli_flavor_load(void); static void cli_flavor_change(const char *); -static void cli_kore_features(struct buildopt *, char **, size_t *); +static void cli_kore_features(struct buildopt *, + char **, size_t *); static void cli_run(int, char **); static void cli_help(int, char **); @@ -1781,7 +1782,7 @@ cli_build_ldflags(struct buildopt *bopt) cli_file_close(fd); if (len == 0) fatal(".objs/ldflags is empty"); - buf[len - 1] = '\0'; + len--; cli_buf_append(bopt->ldflags, buf, len); cli_buf_appendf(bopt->ldflags, " "); @@ -1853,7 +1854,7 @@ cli_kore_features(struct buildopt *bopt, char **out, size_t *outlen) if (len == 0) fatal(".objs/features is empty"); - data[len - 1] = '\0'; + len--; *out = data; *outlen = len;