Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2:Test
sarg
sarg-2.2.5-limit_useragent_sprintf.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sarg-2.2.5-limit_useragent_sprintf.patch of Package sarg
--- sarg-2.2.5/useragent.c.orig 2008-04-24 15:11:35.000000000 +0200 +++ sarg-2.2.5/useragent.c 2008-04-24 15:40:13.000000000 +0200 @@ -146,7 +146,7 @@ else show_sarg(fp_ht,".."); fputs("<center><table cellpadding=0 cellspacing=0>\n",fp_ht); - sprintf(html,"<tr><th align=center colspan=2><b><font color=%s size=+1>%s</font></b></th></tr>\n",TiColor,text[105]); + snprintf(html,sizeof(html),"<tr><th align=center colspan=2><b><font color=%s size=+1>%s</font></b></th></tr>\n",TiColor,text[105]); fputs(html,fp_ht); fputs("<tr><td></td></tr><tr><td></td></tr>",fp_ht); @@ -154,14 +154,14 @@ fputs("<center><table cellpadding=0 cellspacing=0>\n",fp_ht); - sprintf(html,"<tr><td align=right bgcolor=%s><font size=%s>%s:</font><td align=left bgcolor=%s><font size=%s>%s - %s</font></td></td></tr>\n",HeaderBgColor,FontSize,text[89],TxBgColor,FontSize,idate,fdate); + snprintf(html,sizeof(html),"<tr><td align=right bgcolor=%s><font size=%s>%s:</font><td align=left bgcolor=%s><font size=%s>%s - %s</font></td></td></tr>\n",HeaderBgColor,FontSize,text[89],TxBgColor,FontSize,idate,fdate); fputs(html,fp_ht); fputs("</table></center>\n",fp_ht); fputs("<center><table cellpadding=0 cellspacing=0>\n",fp_ht); fputs("<tr><td></td><td></td></tr>",fp_ht); - sprintf(html,"<tr><th align=left bgcolor=%s><font size=%s color=%s>%s</font></th><th bgcolor=%s align=left><font size=%s color=%s>%s</font></th></tr>\n",HeaderBgColor,FontSize,HeaderColor,text[98],HeaderBgColor,FontSize,HeaderColor,text[106]); + snprintf(html,sizeof(html),"<tr><th align=left bgcolor=%s><font size=%s color=%s>%s</font></th><th bgcolor=%s align=left><font size=%s color=%s>%s</font></th></tr>\n",HeaderBgColor,FontSize,HeaderColor,text[98],HeaderBgColor,FontSize,HeaderColor,text[106]); fputs(html,fp_ou); while(fgets(buf,sizeof(buf),fp_in)!=NULL) { @@ -228,7 +228,7 @@ if(strcmp(agent,agent_old) != 0) { agentdif++; - sprintf(html,"%06d %s\n",agentot,agent_old); + snprintf(html,sizeof(html),"%06d %s\n",agentot,agent_old); fputs(html,fp_ou); strcpy(agent_old,agent); agentot2+=agentot; @@ -236,7 +236,7 @@ } } agentdif++; - sprintf(html,"%06d %s\n",agentot,agent); + snprintf(html,sizeof(html),"%06d %s\n",agentot,agent); fputs(html,fp_ou); agentot2+=agentot; @@ -263,7 +263,7 @@ fputs("<br><br>\n",fp_ht); fputs("<center><table cellpadding=0 cellspacing=0>\n",fp_ht); - sprintf(html,"<tr><th align=left bgcolor=%s><font size=%s color=%s>%s</font></th><th bgcolor=%s align=left><font size=%s color=%s>%s</font></th><th align=center bgcolor=%s><font size=%s color=%s>%%</font></th></tr>\n",HeaderBgColor,FontSize,HeaderColor,text[106],HeaderBgColor,FontSize,HeaderColor,text[107],HeaderBgColor,FontSize,HeaderColor); + snprintf(html,sizeof(html),"<tr><th align=left bgcolor=%s><font size=%s color=%s>%s</font></th><th bgcolor=%s align=left><font size=%s color=%s>%s</font></th><th align=center bgcolor=%s><font size=%s color=%s>%%</font></th></tr>\n",HeaderBgColor,FontSize,HeaderColor,text[106],HeaderBgColor,FontSize,HeaderColor,text[107],HeaderBgColor,FontSize,HeaderColor); fputs(html,fp_ht); while(fgets(buf,sizeof(buf),fp_in)!=NULL) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor