diff options
Diffstat (limited to 'printing')
-rw-r--r-- | printing/backend/win_helper.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/printing/backend/win_helper.cc b/printing/backend/win_helper.cc index eba284e..8bcb45e 100644 --- a/printing/backend/win_helper.cc +++ b/printing/backend/win_helper.cc @@ -367,7 +367,8 @@ std::string GetDriverInfo(HANDLE printer) { for (size_t i = 0; i < arraysize(info); ++i) { std::replace(info[i].begin(), info[i].end(), ';', ','); driver_info.append(info[i]); - driver_info.append(";"); + if (i < arraysize(info) - 1) + driver_info.append(";"); } return driver_info; } |