diff --git a/src/misc/fp_ident.c b/src/misc/fp_ident.c index e0a7907..98c5cc4 100644 --- a/src/misc/fp_ident.c +++ b/src/misc/fp_ident.c @@ -74,7 +74,7 @@ const char *fp_ident(void) if (sizeof(fp_digit) == sizeof(fp_word)) { strncat(buf, "WARNING: sizeof(fp_digit) == sizeof(fp_word), this build is likely to not work properly.\n", - sizeof(buf)-1); + sizeof(buf) - strlen(buf) - 1); } return buf; }