rem: if (quoted) { snprintf(buf, sizeof(buf), "\"%s\"", str); packet_append(packet, buf); } else packet_append(packet, str);
add: fmt = stringf("%s%s", first ? "" : " ", quoted ? "\"%s\"" : "%s"); string_appendf(packet->data, fmt, str);
context: void opn_packet_put_str(OpnPacket *packet, char *str, BOOL quoted){	char buf[PATH_MAX + 1];		assert(packet);	assert(str);	if (quoted) {		snprintf(buf, sizeof(buf), "\"%s\"", str);		packet_append(packet, buf);	} else		packet_append(packet, str);}