From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 3842a6b1 for ; Tue, 18 Apr 2017 08:58:26 -0500 (EST) Date: Tue, 18 Apr 2017 08:58:26 -0500 (EST) Message-Id: <2877898975520355670.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Fix previous: i forgot explicit NUL termination; noticed by X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Fix previous: i forgot explicit NUL termination; noticed by Gonzalo , thanks! Modified Files: -------------- mdocml: mansearch.c Revision Data ------------- Index: mansearch.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/mansearch.c,v retrieving revision 1.70 retrieving revision 1.71 diff -Lmansearch.c -Lmansearch.c -u -p -r1.70 -r1.71 --- mansearch.c +++ mansearch.c @@ -516,6 +516,8 @@ buildoutput(size_t im, struct dbm_page * output = mandoc_malloc(sz); i = 0; lstcat(output, &i, input, " # "); + output[i++] = '\0'; + assert(i == sz); return output; } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv