aboutsummaryrefslogtreecommitdiffstats
path: root/src/smpp34_unpack.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/smpp34_unpack.c')
-rw-r--r--src/smpp34_unpack.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/smpp34_unpack.c b/src/smpp34_unpack.c
index e378b0b..f498d01 100644
--- a/src/smpp34_unpack.c
+++ b/src/smpp34_unpack.c
@@ -60,7 +60,7 @@ smpp34_unpack(uint32_t type, void* tt, const uint8_t *ptrBuf, int ptrLen)
lenval = sizeof( uint32_t );\
if( lenval > left ){\
PUTLOG("[%s:%08X(%s)]", par, inst par,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
memcpy(&inst par, aux, lenval);\
@@ -78,7 +78,7 @@ smpp34_unpack(uint32_t type, void* tt, const uint8_t *ptrBuf, int ptrLen)
lenval = sizeof( uint16_t );\
if( lenval > left ){\
PUTLOG("[%s:%04X(%s)]", par, inst par,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
}\
memcpy(&inst par, aux, lenval);\
@@ -96,7 +96,7 @@ smpp34_unpack(uint32_t type, void* tt, const uint8_t *ptrBuf, int ptrLen)
lenval = sizeof( uint8_t );\
if( lenval > left ){\
PUTLOG("[%s:%02X(%s)]", par, inst par,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
memcpy(&inst par, aux, lenval);\
@@ -129,7 +129,7 @@ smpp34_unpack(uint32_t type, void* tt, const uint8_t *ptrBuf, int ptrLen)
lenval = strlen( (char*) aux ) + 1;\
if( lenval > left ){\
PUTLOG("[len(%s):%d(%s)]", par, lenval, \
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
if( lenval > size ){\
@@ -147,7 +147,7 @@ smpp34_unpack(uint32_t type, void* tt, const uint8_t *ptrBuf, int ptrLen)
lenval = *((inst par) - 1);\
if( lenval > left ){\
PUTLOG("[leng %s:%d(%s)]", par, lenval,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
if( lenval > size ){\
@@ -165,7 +165,7 @@ smpp34_unpack(uint32_t type, void* tt, const uint8_t *ptrBuf, int ptrLen)
memcpy(&l_lenval, (inst par - sizeof(uint16_t)), sizeof(uint16_t));\
if( l_lenval > left ){\
PUTLOG("[leng %s:%d(%s)]", par, l_lenval,\
- "Value lenght exceed buffer lenght");\
+ "Value length exceed buffer length");\
return( -1 );\
};\
if( l_lenval > size ){\