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