diff options
author | erin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2008-02-13 03:48:28 +0000 |
---|---|---|
committer | erin_yueh <erin_yueh@99fdad57-331a-0410-800a-d7fa5415bdb3> | 2008-02-13 03:48:28 +0000 |
commit | bf667e7e9c45b0b0c3787c1023c3b0f6de284cd8 (patch) | |
tree | 24247ed5e688cce25b01144a04ceeb1f98dfdea4 /src/gsmd/operator_cache.c | |
parent | fb0265f553ca0efe8aac0f10de480bffeff1a33d (diff) |
gsmd: add strlcpy, strlcat functions (Paulius Zaleckas)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4060 99fdad57-331a-0410-800a-d7fa5415bdb3
Diffstat (limited to 'src/gsmd/operator_cache.c')
-rw-r--r-- | src/gsmd/operator_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsmd/operator_cache.c b/src/gsmd/operator_cache.c index e680706..e37310c 100644 --- a/src/gsmd/operator_cache.c +++ b/src/gsmd/operator_cache.c @@ -82,7 +82,7 @@ int gsmd_opname_add(struct gsmd *g, const char *numeric_bcd_string, strncpy(mcc, numeric_bcd_string, 3); strncpy(mnc, numeric_bcd_string+3, 2); - strncpy(op->alnum_long, alnum_long, sizeof(op->alnum_long-1)); + strlcpy(op->alnum_long, alnum_long, sizeof(op->alnum_long)); op->numeric.mcc = atoi(mcc); op->numeric.mnc = atoi(mnc); |