diff --git a/makefile b/makefile index 00e67d3..57847c1 100644 --- a/makefile +++ b/makefile @@ -1,7 +1,7 @@ NAME = ly CC = gcc FLAGS = -std=c99 -pedantic -g -FLAGS+= -Wall -Wno-unused-parameter -Wextra -Werror=vla -Werror +FLAGS+= -Wall -Wextra -Werror=vla -Wno-unused-parameter #FLAGS+= -DDEBUG FLAGS+= -DGIT_VERSION_STRING=\"$(shell git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')\" LINK = -lpam -lxcb diff --git a/src/login.c b/src/login.c index 11cd938..361df01 100644 --- a/src/login.c +++ b/src/login.c @@ -431,7 +431,7 @@ void shell(struct passwd* pwd) pos = pwd->pw_shell; } - strncpy(args + 1, pos, 1024); + strncpy(args + 1, pos, 1023); execl(pwd->pw_shell, args, NULL); } @@ -671,4 +671,5 @@ void auth( { pam_diagnose(ok, buf); } -} \ No newline at end of file +} +