aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eversberg <Andreas.Eversberg@versatel.de>2009-12-21 01:18:44 +0100
committerHarald Welte <laforge@gnumonks.org>2009-12-21 01:18:44 +0100
commit56315f02bb88f0595d369c2d80f6556922758f62 (patch)
treedc1ed80af36393c799bcac4fd434d77e88b98e46
parentf77af1fb302ba624bf401c56104a16d79e221916 (diff)
Fix typo s/memcpy/memcmp in trau_frame.c
-rw-r--r--openbsc/src/trau_mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/trau_mux.c b/openbsc/src/trau_mux.c
index 477ea21e5..9930751a5 100644
--- a/openbsc/src/trau_mux.c
+++ b/openbsc/src/trau_mux.c
@@ -185,7 +185,7 @@ int trau_mux_input(struct gsm_e1_subslot *src_e1_ss,
return -EINVAL;
if (!ue->callref)
return -EINVAL;
- if (memcpy(tf.c_bits, c_bits_check, sizeof(c_bits_check)))
+ if (memcmp(tf.c_bits, c_bits_check, sizeof(c_bits_check)))
DEBUGPC(DMUX, "illegal trau (C1-C5) %s\n",
hexdump(tf.c_bits, sizeof(c_bits_check)));
msg = msgb_alloc(sizeof(struct gsm_data_frame) + 33,