Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
830b44f
)
libext2fs: adjust the description when copying a bitmap
author
Theodore Ts'o
<tytso@mit.edu>
Sat, 17 Dec 2011 19:01:15 +0000
(14:01 -0500)
committer
Theodore Ts'o
<tytso@mit.edu>
Sun, 18 Dec 2011 06:12:44 +0000
(
01:12
-0500)
Label the copy of a bitmap as "copy of ..." so that the bitmap's
description is more descriptive.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/gen_bitmap64.c
patch
|
blob
|
history
diff --git
a/lib/ext2fs/gen_bitmap64.c
b/lib/ext2fs/gen_bitmap64.c
index
7b066a2
..
9dcca03
100644
(file)
--- a/
lib/ext2fs/gen_bitmap64.c
+++ b/
lib/ext2fs/gen_bitmap64.c
@@
-212,12
+212,12
@@
errcode_t ext2fs_copy_generic_bmap(ext2fs_generic_bitmap src,
descr = src->description;
if (descr) {
- retval = ext2fs_get_mem(strlen(descr)+1, &new_descr);
+ retval = ext2fs_get_mem(strlen(descr)+1
0
, &new_descr);
if (retval) {
ext2fs_free_mem(&new_bmap);
return retval;
}
- s
trcpy(new_descr
, descr);
+ s
printf(new_descr, "copy of %s"
, descr);
new_bmap->description = new_descr;
}