Rev 4256 | Rev 4476 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4256 | Rev 4268 | ||
---|---|---|---|
Line 178... | Line 178... | ||
178 | /* Now fill the buffer with null-terminated argument strings */ |
178 | /* Now fill the buffer with null-terminated argument strings */ |
179 | ap = argv; |
179 | ap = argv; |
180 | dp = arg_buf; |
180 | dp = arg_buf; |
181 | 181 | ||
182 | while (*ap != NULL) { |
182 | while (*ap != NULL) { |
183 | str_ncpy(dp, *ap, buffer_size - (dp - arg_buf)); |
183 | str_cpy(dp, buffer_size - (dp - arg_buf), *ap); |
184 | dp += str_size(*ap) + 1; |
184 | dp += str_size(*ap) + 1; |
185 | 185 | ||
186 | ++ap; |
186 | ++ap; |
187 | } |
187 | } |
188 | 188 |