|
@@ -143,7 +143,7 @@ int StoreEvCommMsg(const char *fmt, ...)
|
|
|
|
|
|
return rc;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
void GetClockTime(struct timespec *_now_time)
|
|
|
{
|
|
|
clock_gettime(CLOCK_MONOTONIC, _now_time);
|
|
@@ -343,7 +343,11 @@ int Trim_String(char *string , int len)
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- strncpy(&string[i], &string[i + 1], len - i);
|
|
|
+ char temp[256];
|
|
|
+ memset(temp, 0x00, sizeof(temp));
|
|
|
+ memcpy(temp, &string[i + 1], len - i);
|
|
|
+
|
|
|
+ strncpy(&string[i], temp, len - i);
|
|
|
i -= 1;
|
|
|
len -= 1;
|
|
|
}
|