1
0
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:
Zdenek Kabelac 2013-04-29 12:33:38 +02:00
parent 986a50e4a1
commit deb3c93a19

View File

@ -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;