refactor: remove redundant casts

This commit is contained in:
Dundar Göc
2022-03-06 12:40:31 +01:00
parent 918ab6bf00
commit ff032f2710
14 changed files with 28 additions and 30 deletions

View File

@@ -430,7 +430,7 @@ char *get_exception_string(void *value, except_type_T type, char_u *cmdname, int
STRCAT(val, p);
p[-2] = NUL;
sprintf((char *)(val + STRLEN(p)), " (%s)", &mesg[1]);
snprintf(val + STRLEN(p), strlen(" (%s)"), " (%s)", &mesg[1]);
p[-2] = '"';
}
break;