X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=thread.c;h=dc786bbccffa921d6aa4795eeb457e3dd65296c4;hp=ae5ebbe1ed6516f29b02faf18eb205f6e5576f7e;hb=c6b9d35ed9361e4defab9762a7480d5126405ae9;hpb=eed5352e46df93f8921d2e6dfdc95b027bad6e1e diff --git a/thread.c b/thread.c index ae5ebbe..dc786bb 100644 --- a/thread.c +++ b/thread.c @@ -243,7 +243,7 @@ void mutt_draw_tree (CONTEXT * ctx) myarrow[width + 1] = 0; new_tree = p_new(char, (2 + depth * width)); if (start_depth > 1) { - strncpy (new_tree, pfx, (start_depth - 1) * width); + memcpy(new_tree, pfx, (start_depth - 1) * width); strfcpy (new_tree + (start_depth - 1) * width, arrow, (1 + depth - start_depth) * width + 2); }