diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-07-14 14:50:08 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-07-14 14:50:08 -0400 |
commit | aee7f7551139af26cc15fe593de8825af77dea4f (patch) | |
tree | 13dc06a2e7288e2ae6e265ca6712a22fcadf0e27 /misc.c | |
parent | 8b2384c94e2f5834f3b8929f982a19edde1503d9 (diff) |
formatting cleanup
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 <http://unlicense.org/> */ -/* +/* 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) { |