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" <tytso@mit.edu>
pu
Theodore Ts'o 2012-07-30 15:54:12 -04:00
parent 1b6de47f65
commit c4111cd7ea
1 changed files with 2 additions and 1 deletions

View File

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