Skip to content
Snippets Groups Projects
Commit 17bb1011 authored by Pär Andersson's avatar Pär Andersson
Browse files

Size parameter of xduparray also needs to be uint32_t

parent 24a538ea
No related branches found
No related tags found
No related merge requests found
......@@ -3501,7 +3501,7 @@ inline static void _slurm_rpc_checkpoint_task_comp(slurm_msg_t * msg)
/* Copy an array of type char **, xmalloc() the array and xstrdup() the
* strings in the array */
extern char **
xduparray(uint16_t size, char ** array)
xduparray(uint32_t size, char ** array)
{
int i;
char ** result;
......@@ -3519,7 +3519,7 @@ xduparray(uint16_t size, char ** array)
/* Like xduparray(), but performs one xmalloc(). The output format of this
* must be identical to _read_data_array_from_file() */
static char **
_xduparray2(uint16_t size, char ** array)
_xduparray2(uint32_t size, char ** array)
{
int i, len = 0;
char *ptr, ** result;
......
......@@ -74,7 +74,7 @@ extern int slurm_fail_job(uint32_t job_id);
/* Copy an array of type char **, xmalloc() the array and xstrdup() the
* strings in the array */
extern char **xduparray(uint16_t size, char ** array);
extern char **xduparray(uint32_t size, char ** array);
#endif /* !_HAVE_PROC_REQ_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment