mirror of
https://github.com/troglobit/editline.git
synced 2025-09-17 01:08:08 +08:00
Fix suspicious use of sizeof(char **), same as sizeof(char *) but not portable.
Coverity CID #56740, #56741, #56742 Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
@@ -1576,7 +1576,7 @@ static int argify(char *line, char ***avp)
|
||||
return ac;
|
||||
}
|
||||
|
||||
memcpy(arg, p, i * sizeof(char **));
|
||||
memcpy(arg, p, i * sizeof(char *));
|
||||
i += MEM_INC;
|
||||
free(p);
|
||||
*avp = p = arg;
|
||||
|
Reference in New Issue
Block a user