mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtfile: Resolve format-overflow issues
This commit is contained in:
parent
bd49a5c948
commit
5f784d1013
2 changed files with 3 additions and 3 deletions
|
@ -1971,7 +1971,7 @@ FileOpPipeCB(
|
||||||
|
|
||||||
if( cb_data->mode == MOVE_FILE )
|
if( cb_data->mode == MOVE_FILE )
|
||||||
{
|
{
|
||||||
sprintf( fileName, "%s/%s", tmpDir, cb_data->updates[i].file );
|
snprintf( fileName, sizeof(fileName), "%s/%s", tmpDir, cb_data->updates[i].file );
|
||||||
if( cb_data->updates[i].operationStatus == True )
|
if( cb_data->updates[i].operationStatus == True )
|
||||||
{
|
{
|
||||||
if( status == PIPEMSG_MOVE_TO_SAME_DIR )
|
if( status == PIPEMSG_MOVE_TO_SAME_DIR )
|
||||||
|
@ -1988,7 +1988,7 @@ FileOpPipeCB(
|
||||||
|
|
||||||
if(initiating_view == NULL && cb_data->callback_data == NULL)
|
if(initiating_view == NULL && cb_data->callback_data == NULL)
|
||||||
{
|
{
|
||||||
sprintf( fileName, "%s/%s", cb_data->directory,
|
snprintf( fileName, sizeof(fileName), "%s/%s", cb_data->directory,
|
||||||
cb_data->updates[i].file );
|
cb_data->updates[i].file );
|
||||||
DtEliminateDots(fileName);
|
DtEliminateDots(fileName);
|
||||||
RemoveIconFromWorkspace( fileName, cb_data->directory );
|
RemoveIconFromWorkspace( fileName, cb_data->directory );
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
* global variables
|
* global variables
|
||||||
*----------------------*/
|
*----------------------*/
|
||||||
|
|
||||||
#define EMSGMAX 1024
|
#define EMSGMAX 4096
|
||||||
char g_errorMessage[EMSGMAX];
|
char g_errorMessage[EMSGMAX];
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue