From 99b0bab8fcabc62aa154bc81da5b20ae9a3e3658 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 14 Jun 2017 00:03:45 +0200 Subject: [PATCH] aft.c: Trivial spelling/whitespace fixes. Avoid an overlong line, spell out memory-mapped and don't misspell "formatted". --- aft.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/aft.c b/aft.c index 99d53393..d58f9daf 100644 --- a/aft.c +++ b/aft.c @@ -365,7 +365,10 @@ static void save_afhi(struct afh_info *afhi, char *buf) write_u32(buf + CHUNK_TV_TV_SEC_OFFSET, afhi->chunk_tv.tv_sec); write_u32(buf + CHUNK_TV_TV_USEC_OFFSET, afhi->chunk_tv.tv_usec); p = buf + AFHI_INFO_STRING_OFFSET; - /* The sprintf's below are OK as our caller made sure that buf is large enough */ + /* + * The below sprintf(3) calls are OK because our caller already made + * sure that buf is large enough. + */ p += sprintf(p, "%s", afhi->techinfo) + 1; p += sprintf(p, "%s", afhi->tags.artist) + 1; p += sprintf(p, "%s", afhi->tags.title) + 1; @@ -528,7 +531,7 @@ static int get_afsi_of_path(const char *path, struct afs_info *afsi) * \param row Pointer to a row in the audio file table. * \param path Result pointer. * - * The result is a pointer to mmapped data. The caller must not attempt + * The result is a pointer to memory-mapped data. The caller must not attempt * to free it. * * \return Standard. @@ -692,7 +695,7 @@ static int get_local_time(uint64_t *seconds, char *buf, size_t size, /* * If the given time is more than six month away from the current time, * we print only the year. The additional space character in the format - * string below makes the formated date align nicely with dates that + * string below makes the formatted date align nicely with dates that * contain the time (those written by the above strftime() statement). */ if (!strftime(buf, size, "%b %e %Y", tm)) -- 2.39.5