summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@yahoo.com>2018-06-04 13:38:11 +0300
committerDaniel Zaoui <daniel.zaoui@yahoo.com>2018-06-04 13:38:11 +0300
commit4203336691f66a234c2670c54558a894a35d7d3a (patch)
tree6b7ff901bb6cad68b064586afb80db876e6db1f2
parent4b5ced9b07addab51ba8d87be7bdb1fd8c35837b (diff)
Remove references to POSIX
-rw-r--r--src/bin/recorder.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bin/recorder.c b/src/bin/recorder.c
index 5c8760f..f6a1c99 100644
--- a/src/bin/recorder.c
+++ b/src/bin/recorder.c
@@ -2,8 +2,6 @@
2# include <config.h> 2# include <config.h>
3#endif 3#endif
4 4
5#define _POSIX_
6#include <limits.h>
7#include <stdio.h> 5#include <stdio.h>
8#include <stdlib.h> 6#include <stdlib.h>
9#include <getopt.h> 7#include <getopt.h>
@@ -467,7 +465,7 @@ int main(int argc, char **argv)
467 /* Replace the current command line to hide the Exactness part */ 465 /* Replace the current command line to hide the Exactness part */
468 int len = argv[argc - 1] + strlen(argv[argc - 1]) - argv[opt_args]; 466 int len = argv[argc - 1] + strlen(argv[argc - 1]) - argv[opt_args];
469 memcpy(argv[0], argv[opt_args], len); 467 memcpy(argv[0], argv[opt_args], len);
470 memset(argv[0] + len, 0, _POSIX_PATH_MAX - len); 468 memset(argv[0] + len, 0, MAX_PATH - len);
471 469
472 int i; 470 int i;
473 for (i = opt_args; i < argc; i++) 471 for (i = opt_args; i < argc; i++)