]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
e2fsck: use size_t instead of int in string_copy()
authorLukas Czerner <lczerner@redhat.com>
Fri, 5 Jun 2020 08:14:40 +0000 (10:14 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 1 Oct 2020 20:51:46 +0000 (16:51 -0400)
commit0c6fe31f328e7244164d8a954488f5738caaf915
tree18739582a48bb0d9ba445a7b7a599a6ad16db160
parentacc905845109b0279e92f1fde03dfd1bfe13342a
e2fsck: use size_t instead of int in string_copy()

len argument in string_copy() is int, but it is used with malloc(),
strlen(), strncpy() and some callers use sizeof() to pass value in. So
it really ought to be size_t rather than int. Fix it.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/e2fsck.h
e2fsck/util.c