Fix logical issue in assignment
Fix logical issue in assignment

variable size is assigned a value(*buf + ...), where *buf contains garbage
value till this point and can result wrong size variable. buf[...] line seems
to place newline byte in last.

This patch fixes above mentioned issue.

Fixes: ef2c1986 (src/servicelog.c: Replace sprintf() with secure variants())
Signed-off-by: Ankit Kumar <7d7f3b0de32b6cc2e9608ebf7986c26b5954d288@linux.vnet.ibm.com>
Signed-off-by: Vasant Hegde <a6d753843573f7bfed5075c1e875b0be8007a0ab@linux.vnet.ibm.com>

kamalesh-babulal/libservicelog,kamalesh-babulal/libservicelog