Gitiles
Code Review
Sign In
git01.mediatek.com
/
filogic
/
uboot
/
928eb5f719dc885da35385595b314f43b9d1fb9a
/
.
/
net
/
net-common.c
blob: a7f767d5e9c69afb515c16470c511493392eb66e [
file
] [
log
] [
blame
]
// SPDX-License-Identifier: GPL-2.0
void
copy_filename
(
char
*
dst
,
const
char
*
src
,
int
size
)
{
if
(
src
&&
*
src
&&
(*
src
==
'"'
))
{
++
src
;
--
size
;
}
while
((--
size
>
0
)
&&
src
&&
*
src
&&
(*
src
!=
'"'
))
*
dst
++
=
*
src
++;
*
dst
=
'\0'
;
}