More length fiddling.
This commit is contained in:
		| @@ -628,7 +628,7 @@ clipread(void) | ||||
| 				} | ||||
| 				CFIndex length = CFDataGetLength(cfdata)/sizeof(Rune); | ||||
| 				if (length > sizeof rsnarf) length = sizeof rsnarf; | ||||
| 				CFDataGetBytes(cfdata, CFRangeMake(0, length), (uint8_t *)rsnarf); | ||||
| 				CFDataGetBytes(cfdata, CFRangeMake(0, length*sizeof(Rune)), (uint8_t *)rsnarf); | ||||
| 				snprint(snarf, sizeof snarf, "%.*S", length, rsnarf); | ||||
| 				char *s = snarf; | ||||
| 				while (*s) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user