diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-16 16:05:28 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-16 16:22:37 -0700 |
commit | 7e29b1d29c6d7cbabe1bad536f7b8f644bffcd4f (patch) | |
tree | 596aa548d029927068807012dbd76bfb0c6cedc9 | |
parent | 949da2db3e9357d8256863475a8c63409a8fc7b9 (diff) |
Remove unnecessary cast of strlen result in malloc argument
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | bdfutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |