-/* $Id: macterm.c,v 1.36 2003/01/08 22:46:12 ben Exp $ */
+/* $Id: macterm.c,v 1.38 2003/01/09 22:51:41 ben Exp $ */
/*
* Copyright (c) 1999 Simon Tatham
* Copyright (c) 1999, 2002 Ben Harris
OptionBits fbflags;
SetPort(s->window);
- macfont[0] = sprintf((char *)&macfont[1], "%s", s->cfg.font);
+ c2pstrcpy(macfont, s->cfg.font);
GetFNum(macfont, &s->fontnum);
TextFont(s->fontnum);
TextFace(s->cfg.fontisbold ? bold : 0);
GrafPtr portsave;
Point mouse;
char buf[20];
+ unsigned char pbuf[20];
int newrows, newcols;
GetMouse(&mouse);
if (strcmp(buf, growterm_state.oldmsg) == 0)
return;
strcpy(growterm_state.oldmsg, buf);
- c2pstr(buf);
+ c2pstrcpy(pbuf, buf);
GetPort(&portsave);
SetPort(growterm_state.s->window);
EraseRect(&growterm_state.msgrect);
MoveTo(growterm_state.msgorigin.h, growterm_state.msgorigin.v);
- DrawString((StringPtr)buf);
+ DrawString(pbuf);
SetPort(portsave);
}
Session *s = frontend;
Str255 mactitle;
- mactitle[0] = sprintf((char *)&mactitle[1], "%s", title);
+ c2pstrcpy(mactitle, title);
SetWTitle(s->window, mactitle);
}