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