From: Theodore Ts'o Date: Mon, 30 Jul 2012 19:54:12 +0000 (-0400) Subject: libext2fs: use strcpy()/strcat() instead of sprintf() in bmap functions X-Git-Tag: v1.43-WIP-2012-09-22~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4111cd7eaabee63155ffeb675f806d452e9a191;p=thirdparty%2Fe2fsprogs.git libext2fs: use strcpy()/strcat() instead of sprintf() in bmap functions This simplifies the number of C library symbols needed by boot loader systems such as yaboot. Signed-off-by: "Theodore Ts'o" --- diff --git a/lib/ext2fs/gen_bitmap64.c b/lib/ext2fs/gen_bitmap64.c index 44b733da8..dd2773a9f 100644 --- 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; }