Return to tran.c CVS log | Up to [local] / src / usr.bin / awk |
version 1.27, 2020/06/10 21:05:50 | version 1.28, 2020/06/16 16:14:22 | ||
---|---|---|---|
|
|
||
p = malloc(n); | p = malloc(n); | ||
if (p == NULL) | if (p == NULL) | ||
FATAL("out of space in tostring on %s", s); | FATAL("out of space in tostringN %zu", n); | ||
strlcpy(p, s, n); | if (strlcpy(p, s, n) >= n) | ||
FATAL("out of space in tostringN on %s", s); | |||
return(p); | return(p); | ||
} | } | ||