]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
types.h: add an implementation for strscpy() and strscat()
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 18 Jul 2024 14:44:47 +0000 (16:44 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 18 Jul 2024 15:34:34 +0000 (17:34 +0200)
commit77dfe5b1e59f119ebc64ebf8f2b31b720813b212
tree47778d267a8276e5ee0ee116d2a0fd03313ccf61
parent73b30c1c89899bdb9d034af51108057c7539cbcf
types.h: add an implementation for strscpy() and strscat()

Do our own implementation for such routines, as the Kernel
implementation is a lot more complex than what it would be needed
here.

With that, change checkpatch.pl to request usage of such functions
instead of unsafe strcpy()/strcat().

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
scripts/checkpatch.pl
types.h