summaryrefslogtreecommitdiff
path: root/storage/connect/colblk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/connect/colblk.cpp')
-rw-r--r--storage/connect/colblk.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/storage/connect/colblk.cpp b/storage/connect/colblk.cpp
index d531685950d..79fc2a5e076 100644
--- a/storage/connect/colblk.cpp
+++ b/storage/connect/colblk.cpp
@@ -177,7 +177,7 @@ bool COLBLK::InitValue(PGLOBAL g)
/***********************************************************************/
bool COLBLK::SetBuffer(PGLOBAL g, PVAL, bool, bool)
{
- sprintf(g->Message, MSG(UNDEFINED_AM), "SetBuffer");
+ snprintf(g->Message, sizeof(g->Message), MSG(UNDEFINED_AM), "SetBuffer");
return true;
} // end of SetBuffer
@@ -196,7 +196,7 @@ int COLBLK::GetLengthEx(void)
/***********************************************************************/
void COLBLK::ReadColumn(PGLOBAL g)
{
- sprintf(g->Message, MSG(UNDEFINED_AM), "ReadColumn");
+ snprintf(g->Message, sizeof(g->Message), MSG(UNDEFINED_AM), "ReadColumn");
throw (int)TYPE_COLBLK;
} // end of ReadColumn
@@ -207,7 +207,7 @@ void COLBLK::ReadColumn(PGLOBAL g)
/***********************************************************************/
void COLBLK::WriteColumn(PGLOBAL g)
{
- sprintf(g->Message, MSG(UNDEFINED_AM), "WriteColumn");
+ snprintf(g->Message, sizeof(g->Message), MSG(UNDEFINED_AM), "WriteColumn");
throw (int)TYPE_COLBLK;
} // end of WriteColumn
@@ -261,7 +261,7 @@ SPCBLK::SPCBLK(PCOLUMN cp)
/***********************************************************************/
void SPCBLK::WriteColumn(PGLOBAL g)
{
- sprintf(g->Message, MSG(SPCOL_READONLY), Name);
+ snprintf(g->Message, sizeof(g->Message), MSG(SPCOL_READONLY), Name);
throw (int)TYPE_COLBLK;
} // end of WriteColumn