Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libext2fs: use strcpy()/strcat() instead of sprintf() in bmap functions
[tools/e2fsprogs.git]
/
lib
/
ext2fs
/
gen_bitmap64.c
diff --git
a/lib/ext2fs/gen_bitmap64.c
b/lib/ext2fs/gen_bitmap64.c
index
44b733d
..
dd2773a
100644
(file)
--- a/
lib/ext2fs/gen_bitmap64.c
+++ b/
lib/ext2fs/gen_bitmap64.c
@@
-322,7
+322,8
@@
errcode_t ext2fs_copy_generic_bmap(ext2fs_generic_bitmap src,
ext2fs_free_mem(&new_bmap);
return retval;
}
- sprintf(new_descr, "copy of %s", descr);
+ strcpy(new_descr, "copy of ");
+ strcat(new_descr, descr);
new_bmap->description = new_descr;
}