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

@@ -1098,8 +1098,7 @@ const char *mapping;
new_map->regex.allocated = 0;
new_map->regex.regs_allocated = REGS_FIXED;
#else
new_map->pattern = (char *)alloc(strlen(text) + 1);
Strcpy(new_map->pattern, text);
new_map->pattern = dupstr(text);
#endif
new_map->filename = dupstr(filespec);
new_map->volume = volume;