2014-06-24 15:13:53 +04:00
|
|
|
--- hplip-3.14.3/prnt/hpcups/HPCupsFilter.cpp.logdir 2014-04-01 20:32:41.175022619 +0200
|
|
|
|
+++ hplip-3.14.3/prnt/hpcups/HPCupsFilter.cpp 2014-04-01 20:33:58.726020660 +0200
|
|
|
|
@@ -604,7 +605,7 @@ int HPCupsFilter::processRasterData(cups
|
|
|
|
char hpPreProcessedRasterFile[MAX_FILE_PATH_LEN]; //temp file needed to store raster data with swaped pages.
|
2013-08-26 10:37:49 +04:00
|
|
|
|
2013-11-13 16:39:35 +04:00
|
|
|
|
|
|
|
- sprintf(hpPreProcessedRasterFile, "%s/hp_%s_cups_SwapedPagesXXXXXX",CUPS_TMP_DIR, m_JA.user_name);
|
2014-06-24 15:13:53 +04:00
|
|
|
+ snprintf(hpPreProcessedRasterFile, sizeof(hpPreProcessedRasterFile), "%s/hp_%s_cups_SwapedPagesXXXXXX",CUPS_TMP_DIR, m_JA.user_name);
|
2013-11-13 16:39:35 +04:00
|
|
|
|
2013-08-26 10:37:49 +04:00
|
|
|
|
|
|
|
while (cupsRasterReadHeader2(cups_raster, &cups_header))
|
2014-06-24 15:13:53 +04:00
|
|
|
--- hplip-3.14.3/prnt/hpcups/SystemServices.cpp.logdir 2014-04-01 20:32:41.182022618 +0200
|
|
|
|
+++ hplip-3.14.3/prnt/hpcups/SystemServices.cpp 2014-04-01 20:34:56.574019199 +0200
|
|
|
|
@@ -38,7 +38,7 @@ SystemServices::SystemServices(int iLogL
|
2013-08-26 10:37:49 +04:00
|
|
|
if (iLogLevel & SAVE_PCL_FILE)
|
|
|
|
{
|
2014-06-24 15:13:53 +04:00
|
|
|
char fname[MAX_FILE_PATH_LEN];
|
2013-11-13 16:39:35 +04:00
|
|
|
- sprintf(fname, "%s/hp_%s_cups_out_job%d_XXXXXX",CUPS_TMP_DIR, user_name, job_id);
|
|
|
|
+ snprintf(fname, sizeof(fname), "%s/hp_%s_cups_out_job%d_XXXXXX",CUPS_TMP_DIR, user_name, job_id);
|
|
|
|
|
|
|
|
createTempFile(fname, &m_fp);
|
|
|
|
if (m_fp)
|