[hackers] [scc] [driver] use PATH_MAX instead of FILENAME_MAX || Quentin Rameau

From: <git_AT_suckless.org>
Date: Mon, 30 May 2016 11:44:29 +0200 (CEST)

commit 744cc7ee28c5b559051e6f3d721f850a5bc9ca09
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Mon May 30 11:43:50 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Mon May 30 11:43:50 2016 +0200

    [driver] use PATH_MAX instead of FILENAME_MAX
    
    This is a file path there, so use the correct constant.

diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index ad058da..d3eb0e9 100644
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
_AT_@ -24,7 +24,7 @@ enum {
 };
 
 static struct {
- char cmd[FILENAME_MAX];
+ char cmd[PATH_MAX];
         char *args[NARGS];
         char bin[16];
         char name[8];
Received on Mon May 30 2016 - 11:44:29 CEST

This archive was generated by hypermail 2.3.0 : Mon May 30 2016 - 11:48:15 CEST