summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-09-16 16:05:28 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-09-16 16:22:37 -0700
commit7e29b1d29c6d7cbabe1bad536f7b8f644bffcd4f (patch)
tree596aa548d029927068807012dbd76bfb0c6cedc9
parent949da2db3e9357d8256863475a8c63409a8fc7b9 (diff)
Remove unnecessary cast of strlen result in malloc argument
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--bdfutils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bdfutils.c b/bdfutils.c
index af77ce9..16df6d1 100644
--- a/bdfutils.c
+++ b/bdfutils.c
@@ -169,7 +169,7 @@ bdfGetPropertyValue(char *s)
}
/* quoted string: strip outer quotes and undouble inner quotes */
s++;
- pp = p = malloc((unsigned) strlen(s) + 1);
+ pp = p = malloc(strlen(s) + 1);
if (pp == NULL) {
bdfError("Couldn't allocate property value string (%d)\n",
(int) strlen(s) + 1);