]> granicus.if.org Git - recode/commitdiff
request.c: remove a FIXME
authorReuben Thomas <rrt@sc3d.org>
Thu, 25 Jan 2018 14:28:54 +0000 (14:28 +0000)
committerReuben Thomas <rrt@sc3d.org>
Fri, 26 Jan 2018 11:51:21 +0000 (11:51 +0000)
We don’t need to worry about always ensuring 4 NULs at the end of a buffer
when we might only need 1 or 2.

src/request.c

index 13676d2c3572bf935198e07416afb191c4e53511..922974d697ae4788882e0fb052537edc400d74d8 100644 (file)
@@ -1053,8 +1053,7 @@ decode_request (RECODE_REQUEST request, const char *string)
 `--------------------------*/
 
 /* Guarantee four NULs at the end of the output memory buffer for TASK, yet
-   not counting them as data.  The number of NULs should depend on the goal
-   charset: often one, but two for UCS-2 and four for UCS-4.  FIXME!  */
+   not counting them as data.  (Four is the maximum, needed for UCS-4.)  */
 
 static void
 guarantee_nul_terminator (RECODE_TASK task)