~darkxst/ubuntu/raring/xorg-server/lp1073724

« back to all changes in this revision

Viewing changes to hw/xfree86/x86emu/debug.c

  • Committer: Package Import Robot
  • Author(s): Cyril Brulebois
  • Date: 2011-12-20 11:39:51 UTC
  • mto: (0.10.23) (1.1.48)
  • mto: This revision was merged to the branch mainline in revision 244.
  • Revision ID: package-import@ubuntu.com-20111220113951-cx9svdcnqpcta5wk
Tags: upstream-1.11.99.2
ImportĀ upstreamĀ versionĀ 1.11.99.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
        M.x86.enc_pos += x;
164
164
}
165
165
 
166
 
void x86emu_decode_printf (char *x)
 
166
void x86emu_decode_printf (const char *x)
167
167
{
168
168
        sprintf(M.x86.decoded_buf+M.x86.enc_str_pos,"%s",x);
169
169
        M.x86.enc_str_pos += strlen(x);
170
170
}
171
171
 
172
 
void x86emu_decode_printf2 (char *x, int y)
 
172
void x86emu_decode_printf2 (const char *x, int y)
173
173
{
174
174
        char temp[100];
175
 
        sprintf(temp,x,y);
 
175
        snprintf(temp,sizeof(temp),x,y);
176
176
        sprintf(M.x86.decoded_buf+M.x86.enc_str_pos,"%s",temp);
177
177
        M.x86.enc_str_pos += strlen(temp);
178
178
}