Original:
Code: Select all
117 for ( i = 0; i < argc; i++ ) {
118
119 if ( argv[i][0] == '+' ) {
120
121 if ( target != NULL ) {
122
123 execute_command(target, ac, av, 1);
124
125 }
126
127 target = &argv[i][1];
128
129 ac = 0;
130
131 } else {
132
133 av[ac] = argv[i];
134
135 ac++;
136
137 }
138
139 }
Code: Select all
118 for ( i = 0; i < argc; i++ ) {
119
120 if ( argv[i][0] == '+' ) {
121
122 if ( target != NULL ) {
123
124 execute_command(target, ac, av, 1);
125
126 ac = 0;
127 memset(av, 0, argc * sizeof(char*));
128
129 }
130
131 target = &argv[i][1];
132
133 } else {
134
135 av[ac] = argv[i];
136
137 ac++;
138
139 }
140
141 }
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/ ... 1&iu=/4140