summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/init1.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/init1.cc b/src/init1.cc
index 2a8c8c3c..5decdfaa 100644
--- a/src/init1.cc
+++ b/src/init1.cc
@@ -3735,8 +3735,14 @@ errr init_k_info_txt(FILE *fp)
/* Acquire the text */
s = buf + 2;
- /* Append description */
- strappend(&k_ptr->text, s);
+ if (!k_ptr->text)
+ {
+ k_ptr->text = my_strdup(s);
+ }
+ else
+ {
+ strappend(&k_ptr->text, format("\n%s", s));
+ }
/* Next... */
continue;