about summary refs log tree commit diff stats
path: root/ui-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-log.c')
-rw-r--r--ui-log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-log.c b/ui-log.c index d696e20..c2f92fe 100644 --- a/ui-log.c +++ b/ui-log.c
@@ -234,7 +234,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs)
234 strbuf_add(&msgbuf, "\n\n", 2); 234 strbuf_add(&msgbuf, "\n\n", 2);
235 235
236 /* Place wrap_symbol at position i in info->subject */ 236 /* Place wrap_symbol at position i in info->subject */
237 strcpy(info->subject + i, wrap_symbol); 237 strlcpy(info->subject + i, wrap_symbol, subject_len - i + 1);
238 } 238 }
239 } 239 }
240 cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head, 240 cgit_commit_link(info->subject, NULL, NULL, ctx.qry.head,