b1d80f
diff -up hplip-3.21.2/prnt/hpcups/HPCupsFilter.cpp.logdir hplip-3.21.2/prnt/hpcups/HPCupsFilter.cpp
b1d80f
--- hplip-3.21.2/prnt/hpcups/HPCupsFilter.cpp.logdir	2021-02-19 07:46:48.334843864 +0100
b1d80f
+++ hplip-3.21.2/prnt/hpcups/HPCupsFilter.cpp	2021-02-19 07:48:18.052963216 +0100
b1d80f
@@ -656,7 +656,7 @@ int HPCupsFilter::processRasterData(cups
b1d80f
     char hpPreProcessedRasterFile[MAX_FILE_PATH_LEN]; //temp file needed to store raster data with swaped pages.
b1d80f
 
b1d80f
 
b1d80f
-    sprintf(hpPreProcessedRasterFile, "%s/hp_%s_cups_SwapedPagesXXXXXX",CUPS_TMP_DIR, m_JA.user_name);
b1d80f
+    snprintf(hpPreProcessedRasterFile, sizeof (hpPreProcessedRasterFile), "%s/hp_%s_cups_SwapedPagesXXXXXX",CUPS_TMP_DIR, m_JA.user_name);
b1d80f
  
b1d80f
     image_processor_t* imageProcessor=NULL;
b1d80f
     IMAGE_PROCESSOR_ERROR result;
b1d80f
diff -up hplip-3.21.2/prnt/hpcups/SystemServices.cpp.logdir hplip-3.21.2/prnt/hpcups/SystemServices.cpp
b1d80f
--- hplip-3.21.2/prnt/hpcups/SystemServices.cpp.logdir	2021-02-15 00:55:21.000000000 +0100
b1d80f
+++ hplip-3.21.2/prnt/hpcups/SystemServices.cpp	2021-02-19 07:46:48.334843864 +0100
b1d80f
@@ -38,7 +38,7 @@ SystemServices::SystemServices(int iLogL
b1d80f
     if (iLogLevel & SAVE_OUT_FILE)
b1d80f
     {
b1d80f
         char    fname[MAX_FILE_PATH_LEN];
b1d80f
-        sprintf(fname, "%s/hpcups_%s_out_job%d_XXXXXX",CUPS_TMP_DIR, user_name, job_id);
b1d80f
+        snprintf(fname, sizeof(fname), "%s/hpcups_%s_out_job%d_XXXXXX",CUPS_TMP_DIR, user_name, job_id);
b1d80f
         createTempFile(fname, &m_fp);
b1d80f
         if (m_fp)
b1d80f
         {