mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: simplify
Use simplier sprintf.
This commit is contained in:
parent
986a50e4a1
commit
deb3c93a19
@ -301,9 +301,7 @@ static int _report(struct cmd_context *cmd, int argc, char **argv,
|
||||
log_error("options string allocation failed");
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
strcpy(str, options);
|
||||
strcat(str, ",");
|
||||
strcat(str, opts + 1);
|
||||
(void) sprintf(str, "%s,%s", options, opts + 1);
|
||||
options = str;
|
||||
} else
|
||||
options = opts;
|
||||
|
Loading…
Reference in New Issue
Block a user