summaryrefslogtreecommitdiff
path: root/prnt/hpijs/systemservices.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'prnt/hpijs/systemservices.cpp')
-rw-r--r--prnt/hpijs/systemservices.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/prnt/hpijs/systemservices.cpp b/prnt/hpijs/systemservices.cpp
index 95f5a6499..f5b4bb5fa 100644
--- a/prnt/hpijs/systemservices.cpp
+++ b/prnt/hpijs/systemservices.cpp
@@ -396,7 +396,10 @@ void SystemServices::AdjustIO(IO_MODE IM, const char* model)
IOMode.bDevID =IM.bDevID && IOMode.bDevID;
if (model)
+ {
strncpy(strModel,model, sizeof(strModel));
+ strModel[sizeof(strModel)-1] = '\0';
+ }
}
APDK_END_NAMESPACE