shithub: drawterm-fdroid

Download patch

ref: a984a8b22b348aff075b246f3a9de5a590649ed6
parent: 7bdaff72afb4d43d327387ed40e24c83f5381b4c
author: Russ Cox <[email protected]>
date: Sun Jan 28 20:43:06 EST 2007

More length fiddling.

--- a/gui-osx/screen.c
+++ b/gui-osx/screen.c
@@ -628,7 +628,7 @@
 				}
 				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) {