- outputline = smalloc(1+strlen(cmdline));
- outputargv = smalloc(sizeof(char *) * (strlen(cmdline)+1 / 2));
- outputargstart = smalloc(sizeof(char *) * (strlen(cmdline)+1 / 2));
+ outputline = snewn(1+strlen(cmdline), char);
+ outputargv = snewn(strlen(cmdline)+1 / 2, char *);
+ outputargstart = snewn(strlen(cmdline)+1 / 2, char *);