LVM2/tools dmsetup.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2012-02-15 14:27:53
Modified files:
tools : dmsetup.c
Log message:
Simplify with dm_strdup
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/dmsetup.c.diff?cvsroot=lvm2&r1=1.180&r2=1.181
tools/dmsetup.c +1 -2
@@ -3654,11 +3654,10 @@ _switches[SHOWKEYS_ARG ]++;if (ind ==TABLE_ARG ) { _switches[TABLE_ARG ]++; -if (!(_table =dm_malloc (strlen (optarg +1 )))) { +if (!(_table =dm_strdup (optarg))) {log_error ("Could not allocate memory for table string." );return 0 ; } -strcpy (_table, optarg); }if (ind ==TREE_ARG ) _switches[TREE_ARG ]++;