From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 4 Nov 1995 02:03:03 -0500 From: Sandy Harris sharris@fox.nstn.ca Subject: acme buglet Topicbox-Message-UUID: 32abd06c-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19951104070303.NV795hMB5YHP5Ab-nccc1ESL-eM_mtsz_wbg_kGS0N0@z> Scott Schwartz wrote: >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; >} What does this do if the malloc() fails? -- Sandy Harris sharris@fox.nstn.ca