forked from enlightenment/efl
exactness_player: make use of PATH_MAX define instead of posix variant
The use of _POSIX_ has lead to a compile problem on old Ubuntu (16.04) versions. We use PATH_MAX everywhere else so follow suit here. Fixes T8613 Reviewed-by: Ali Alzyod <ali198724@gmail.com> Differential Revision: https://phab.enlightenment.org/D11305
This commit is contained in:
parent
98f2c3d5ee
commit
5f1047c8b4
|
@ -2,8 +2,6 @@
|
|||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#define _POSIX_
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
|
@ -1284,7 +1282,7 @@ int main(int argc, char **argv)
|
|||
/* Replace the current command line to hide the Exactness part */
|
||||
int len = argv[argc - 1] + strlen(argv[argc - 1]) - argv[opt_args];
|
||||
memcpy(argv[0], argv[opt_args], len);
|
||||
memset(argv[0] + len, 0, _POSIX_PATH_MAX - len);
|
||||
memset(argv[0] + len, 0, PATH_MAX - len);
|
||||
|
||||
int i;
|
||||
for (i = opt_args; i < argc; i++)
|
||||
|
|
Loading…
Reference in New Issue