diff options
Diffstat (limited to 'ui-log.c')
| -rw-r--r-- | ui-log.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -67,7 +67,7 @@ void show_commit_decorations(struct commit *commit) | |||
| 67 | while (deco) { | 67 | while (deco) { |
| 68 | struct object_id peeled; | 68 | struct object_id peeled; |
| 69 | int is_annotated = 0; | 69 | int is_annotated = 0; |
| 70 | strncpy(buf, prettify_refname(deco->name), sizeof(buf) - 1); | 70 | strlcpy(buf, prettify_refname(deco->name), sizeof(buf)); |
| 71 | switch(deco->type) { | 71 | switch(deco->type) { |
| 72 | case DECORATION_NONE: | 72 | case DECORATION_NONE: |
| 73 | /* If the git-core doesn't recognize it, | 73 | /* If the git-core doesn't recognize it, |
