diff --git a/src/Makefile b/src/Makefile index e62a8a1..20fbe49 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,5 @@ CC=gcc -CFLAGS+=-Wall -std=gnu99 +CFLAGS+=-Wall -std=gnu99 -no-pie version = $(shell git describe --always --tags --dirty) CFLAGS+="-DVERSION=\"$(version)\"" diff --git a/src/frontend.c b/src/frontend.c index 1a7ddc8..bda9c5e 100644 --- a/src/frontend.c +++ b/src/frontend.c @@ -136,7 +136,7 @@ void validate_arguments(arguments_t *arguments) { if (arguments->width < 0 || arguments->height < 0) { errmsg = "width and height settings must be positive"; } - if (arguments->remote_port != '\0' && arguments->remote_host == '\0') { + if (arguments->remote_port[0] != '\0' && arguments->remote_host[0] == '\0') { errmsg = "server address must be specified"; } if (arguments->connect_remote && arguments->load_file) {