more dupstr (trunk only)

This commit is contained in:
nethack.rankin
2012-03-10 02:49:08 +00:00
parent 78127038a0
commit d3c59c9e84
6 changed files with 14 additions and 27 deletions

View File

@@ -96,10 +96,8 @@ time_t when;
int line;
rip = dp = (char **) alloc(sizeof(rip_txt));
for (x = 0; rip_txt[x]; x++) {
dp[x] = (char *) alloc((unsigned int)(strlen(rip_txt[x]) + 1));
Strcpy(dp[x], rip_txt[x]);
}
for (x = 0; rip_txt[x]; ++x)
dp[x] = dupstr(rip_txt[x]);
dp[x] = (char *)0;
/* Put name on stone */