aboutsummaryrefslogtreecommitdiff
path: root/seatd-launch/seatd-launch.c
diff options
context:
space:
mode:
Diffstat (limited to 'seatd-launch/seatd-launch.c')
-rw-r--r--seatd-launch/seatd-launch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/seatd-launch/seatd-launch.c b/seatd-launch/seatd-launch.c
index 4f15616..8057ba7 100644
--- a/seatd-launch/seatd-launch.c
+++ b/seatd-launch/seatd-launch.c
@@ -42,8 +42,8 @@ int main(int argc, char *argv[]) {
}
char **command = &argv[optind];
- char sockpath[256];
- sprintf(sockpath, "/tmp/seatd.%d.sock", getpid());
+ char sockpath[32];
+ snprintf(sockpath, sizeof sockpath, "/tmp/seatd.%d.sock", getpid());
int fds[2];
if (pipe(fds) == -1) {