1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-12 19:22:41 +00:00

dtfile: Resolve format-overflow issues

This commit is contained in:
Peter Howkins 2021-12-23 19:54:53 +00:00 committed by Jon Trulson
parent bd49a5c948
commit 5f784d1013
2 changed files with 3 additions and 3 deletions

View file

@ -1971,7 +1971,7 @@ FileOpPipeCB(
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( status == PIPEMSG_MOVE_TO_SAME_DIR )
@ -1988,7 +1988,7 @@ FileOpPipeCB(
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 );
DtEliminateDots(fileName);
RemoveIconFromWorkspace( fileName, cb_data->directory );

View file

@ -119,7 +119,7 @@
* global variables
*----------------------*/
#define EMSGMAX 1024
#define EMSGMAX 4096
char g_errorMessage[EMSGMAX];