- Timestamp:
- Jun 19, 2012, 5:24:19 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
Ohana/src/opihi/cmd.basic/shell.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/Ohana/src/opihi/cmd.basic/shell.c
r16895 r34041 13 13 int exit_status; 14 14 int wait_status; 15 int result , length;15 int result; 16 16 char **args, *shell; 17 17 struct timeval start, now; … … 33 33 args[0] = shell; 34 34 args[1] = cmdflag; 35 36 length = 0; 37 for (i = 1; i < argc; i++) { 38 length += strlen(argv[i]) + 1; 39 } 40 41 ALLOCATE (args[2], char, length); 42 args[2][0] = 0; 43 for (i = 1; i < argc; i++) { 44 strcat (args[2], argv[i]); 45 if (i < argc - 1) strcat (args[2], " "); 46 } 35 args[2] = paste_args (argc - 1, &argv[1]); 47 36 args[3] = NULL; 48 37
Note:
See TracChangeset
for help on using the changeset viewer.
