From aee7f7551139af26cc15fe593de8825af77dea4f Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Tue, 14 Jul 2020 14:50:08 -0400 Subject: formatting cleanup --- misc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index dc6076e..8354b69 100644 --- a/misc.c +++ b/misc.c @@ -1,4 +1,4 @@ -/* +/* Miscellaneous C functions which toc uses. This is free and unencumbered software released into the public domain. @@ -24,7 +24,7 @@ For more information, please refer to */ -/* +/* A better alternative to strncpy. dest is guaranteed to be a null-terminated string after this function is run. Returns the number of characters copied to dest, not including the null character. @@ -52,7 +52,7 @@ static char *str_dup(const char *s) { size_t bufsz = strlen(s)+1; char *ret = err_malloc(bufsz); memcpy(ret, s, bufsz); - return ret; + return ret; } static char *cstr(const char *str, size_t len) { -- cgit v1.2.3