Gitiles
Code Review
Sign In
git01.mediatek.com
/
filogic
/
uboot
/
d84f8cdd6e085087172b613528093e8370ef503c
/
.
/
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'
;
}