Gitiles
Code Review
Sign In
gerrit.cesnet.cz
/
github
/
trini
/
u-boot
/
eab4675f93dfedd29a37ffe3b1fa3fbeae831839
/
.
/
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'
;
}