diff --git a/src/wstationd.c b/src/wstationd.c index 8f29b1a..c8879ca 100644 --- a/src/wstationd.c +++ b/src/wstationd.c @@ -34,7 +34,7 @@ #define TIMEOUT 30 -static char exec_name[MAXPATHLEN]; +static char *exec_name; static int daemonize = 1; @@ -80,7 +80,7 @@ int main(int argc, char* argv[]) struct connection* conns[SLOTLIMIT]; memset(conns, 0, sizeof(struct connection*) * SLOTLIMIT); - if(basename_r(argv[0], exec_name) == NULL){ + if((exec_name = basename(argv[0])) == NULL){ fprintf(stderr, "%s: cannot get basename - %s\n", exec_name, strerror(errno) ); diff --git a/src/wstationd.h b/src/wstationd.h index bc0d1b1..380630a 100644 --- a/src/wstationd.h +++ b/src/wstationd.h @@ -1 +1 @@ -#define VERSION "1.0.0" +#define VERSION "1.0.1"