aboutsummaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
Diffstat (limited to 'src/host')
-rw-r--r--src/host/buildvm_lib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/host/buildvm_lib.c b/src/host/buildvm_lib.c
index 8914251e..ffc1b2ca 100644
--- a/src/host/buildvm_lib.c
+++ b/src/host/buildvm_lib.c
@@ -378,7 +378,8 @@ void emit_lib(BuildCtx *ctx)
378 char *p; 378 char *p;
379 /* Simplistic pre-processor. Only handles top-level #if/#endif. */ 379 /* Simplistic pre-processor. Only handles top-level #if/#endif. */
380 if (buf[0] == '#' && buf[1] == 'i' && buf[2] == 'f') { 380 if (buf[0] == '#' && buf[1] == 'i' && buf[2] == 'f') {
381 int ok = 1, len = strlen(buf); 381 int ok = 1;
382 size_t len = strlen(buf);
382 if (buf[len-1] == '\n') { 383 if (buf[len-1] == '\n') {
383 buf[len-1] = 0; 384 buf[len-1] = 0;
384 if (buf[len-2] == '\r') { 385 if (buf[len-2] == '\r') {