From: <wda...@us...> - 2008-01-23 15:15:04
|
Revision: 2293 http://oorexx.svn.sourceforge.net/oorexx/?rev=2293&view=rev Author: wdashley Date: 2008-01-23 07:15:09 -0800 (Wed, 23 Jan 2008) Log Message: ----------- ArtifactID: None Comment: Replaced almost all strcpy function calls with g_snprintf function calls. Modified Paths: -------------- sandbox/david/grxbutton.c sandbox/david/grxinterfaces.c sandbox/david/grxqueue.c sandbox/david/grxwidget.c Modified: sandbox/david/grxbutton.c =================================================================== --- sandbox/david/grxbutton.c 2008-01-23 15:06:33 UTC (rev 2292) +++ sandbox/david/grxbutton.c 2008-01-23 15:15:09 UTC (rev 2293) @@ -951,7 +951,7 @@ font = gtk_font_button_get_font_name(GTK_FONT_BUTTON(myWidget)); /* Set up the REXX return code */ - strcpy(Retstr->strptr, font); + g_snprintf(Retstr->strptr, RXAUTOBUFLEN, "%s", font); Retstr->strlength = strlen(Retstr->strptr);; return RXFUNC_OK; Modified: sandbox/david/grxinterfaces.c =================================================================== --- sandbox/david/grxinterfaces.c 2008-01-23 15:06:33 UTC (rev 2292) +++ sandbox/david/grxinterfaces.c 2008-01-23 15:15:09 UTC (rev 2293) @@ -181,7 +181,7 @@ if (strlen(file) > RXAUTOBUFLEN) { Retstr->strptr = (gchar *)RexxAllocateMemory(strlen(file) + 1); } - strcpy(Retstr->strptr, file); + g_snprintf(Retstr->strptr, RXAUTOBUFLEN, "%s", file); Retstr->strlength = strlen(Retstr->strptr); return RXFUNC_OK; Modified: sandbox/david/grxqueue.c =================================================================== --- sandbox/david/grxqueue.c 2008-01-23 15:06:33 UTC (rev 2292) +++ sandbox/david/grxqueue.c 2008-01-23 15:15:09 UTC (rev 2293) @@ -81,7 +81,7 @@ return RXFUNC_BADCALL; } - strcpy(RexxQueueName, Argv[0].strptr); + g_snprintf(RexxQueueName, sizeof(RexxQueueName), "%s", Argv[0].strptr); *Retstr->strptr = '0'; Retstr->strlength = 1; Modified: sandbox/david/grxwidget.c =================================================================== --- sandbox/david/grxwidget.c 2008-01-23 15:06:33 UTC (rev 2292) +++ sandbox/david/grxwidget.c 2008-01-23 15:15:09 UTC (rev 2293) @@ -443,7 +443,7 @@ name = gtk_widget_get_name(myWidget); /* Set up the REXX return code */ - strcpy(Retstr->strptr, name); + g_snprintf(Retstr->strptr, RXAUTOBUFLEN, "%s", name); Retstr->strlength = strlen(Retstr->strptr); return RXFUNC_OK; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |