[pacman-dev] [PATCH v2 2/3] add arg_to_string helper

Allan McRae allan at archlinux.org
Sat Oct 12 14:24:07 UTC 2019


On 12/10/19 8:20 pm, Ralph Corderoy wrote:
> Hi Andrew,
> 
>> -	for(i = 0; i + 1 < argc; i++) {
>> -		strcpy(p, argv[i]);
>> -		p += strlen(argv[i]);
>> -		*p++ = ' ';
>> -	}
> 
> stpcpy(3)?
> 

This patch is just relocating that code block.   A change to stpcpy
would be a separate patch.

Allan


More information about the pacman-dev mailing list