diff options
-rw-r--r-- | gps/gnss/XtraSystemStatusObserver.h | 2 | ||||
-rw-r--r-- | gps/utils/loc_cfg.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gps/gnss/XtraSystemStatusObserver.h b/gps/gnss/XtraSystemStatusObserver.h index af0789b..6d3e789 100644 --- a/gps/gnss/XtraSystemStatusObserver.h +++ b/gps/gnss/XtraSystemStatusObserver.h @@ -46,7 +46,7 @@ public : inline XtraSystemStatusObserver(IOsObserver* sysStatObs, const MsgTask* msgTask): mSystemStatusObsrvr(sysStatObs), mMsgTask(msgTask), mGpsLock(-1), mConnections(0), mXtraThrottle(true), mReqStatusReceived(false), - mDelayLocTimer(*this), mIsConnectivityStatusKnown (false) { + mIsConnectivityStatusKnown (false), mDelayLocTimer(*this) { subscribe(true); startListeningNonBlocking(LOC_IPC_HAL); mDelayLocTimer.start(100 /*.1 sec*/, false); diff --git a/gps/utils/loc_cfg.cpp b/gps/utils/loc_cfg.cpp index 1c6a2e0..e646ea8 100644 --- a/gps/utils/loc_cfg.cpp +++ b/gps/utils/loc_cfg.cpp @@ -949,7 +949,8 @@ int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_p i = 0; char* temp_arg = ('/' == child_proc[j].name[0][0]) ? (strrchr(child_proc[j].name[0], '/') + 1) : child_proc[j].name[0]; - strlcpy (child_proc[j].args[i++], temp_arg, sizeof (child_proc[j].args[i++])); + i++; + strlcpy (child_proc[j].args[i], temp_arg, sizeof (child_proc[j].args[i])); if(conf.premium_feature) { if(conf.loc_feature_mask & loc_service_mask) { |