|
|
11664de |
diff -up hplip-3.21.12/prnt/hpcups/HPCupsFilter.cpp.logdir hplip-3.21.12/prnt/hpcups/HPCupsFilter.cpp
|
|
|
11664de |
--- hplip-3.21.12/prnt/hpcups/HPCupsFilter.cpp.logdir 2022-01-12 11:27:25.509348511 +0100
|
|
|
11664de |
+++ hplip-3.21.12/prnt/hpcups/HPCupsFilter.cpp 2022-01-12 11:29:11.507661838 +0100
|
|
|
11664de |
@@ -669,7 +669,7 @@ int HPCupsFilter::processRasterData(cups
|
|
|
8287276 |
char hpPreProcessedRasterFile[MAX_FILE_PATH_LEN]; //temp file needed to store raster data with swaped pages.
|
|
|
e5a3211 |
|
|
Jaromír Končický |
69dc6c4 |
|
|
Jaromír Končický |
69dc6c4 |
- sprintf(hpPreProcessedRasterFile, "%s/hp_%s_cups_SwapedPagesXXXXXX",CUPS_TMP_DIR, m_JA.user_name);
|
|
|
8287276 |
+ snprintf(hpPreProcessedRasterFile, sizeof (hpPreProcessedRasterFile), "%s/hp_%s_cups_SwapedPagesXXXXXX",CUPS_TMP_DIR, m_JA.user_name);
|
|
|
11664de |
#ifndef DISABLE_IMAGEPROCESSOR
|
|
|
11664de |
image_processor_t* imageProcessor=NULL;
|
|
|
11664de |
IMAGE_PROCESSOR_ERROR result;
|
|
|
11664de |
diff -up hplip-3.21.12/prnt/hpcups/SystemServices.cpp.logdir hplip-3.21.12/prnt/hpcups/SystemServices.cpp
|
|
|
11664de |
--- hplip-3.21.12/prnt/hpcups/SystemServices.cpp.logdir 2021-12-13 10:07:36.000000000 +0100
|
|
|
11664de |
+++ hplip-3.21.12/prnt/hpcups/SystemServices.cpp 2022-01-12 11:27:25.509348511 +0100
|
|
|
8287276 |
@@ -38,7 +38,7 @@ SystemServices::SystemServices(int iLogL
|
|
|
48e3a67 |
if (iLogLevel & SAVE_OUT_FILE)
|
|
|
e5a3211 |
{
|
|
|
8287276 |
char fname[MAX_FILE_PATH_LEN];
|
|
|
48e3a67 |
- sprintf(fname, "%s/hpcups_%s_out_job%d_XXXXXX",CUPS_TMP_DIR, user_name, job_id);
|
|
|
48e3a67 |
+ snprintf(fname, sizeof(fname), "%s/hpcups_%s_out_job%d_XXXXXX",CUPS_TMP_DIR, user_name, job_id);
|
|
|
ec9980e |
createTempFile(fname, &m_fp);
|
|
|
ec9980e |
if (m_fp)
|
|
|
6806ada |
{
|