From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 29 Oct 1995 14:35:04 -0500 From: Scott Schwartz schwartz@galapagos.cse.psu.edu Subject: acme buglet Topicbox-Message-UUID: 30e3e99a-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19951029193504.54bZDUJ79knyTzVgPHBYbKpLw_huRD7eD09Y9Ck9dHs@z> Rob sent me a different patch for that bug. Here it is. fix in util.l: byte* runetobyte(Rune *r, int n) { byte *s; > if(n == 0) > return nil; s = malloc(n*UTFmax+1); snprint(s, n*UTFmax+1, "%.*S", n, r); return s; }