Commit 8f6736cf authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

winedbg: Fix string format warnings.

parent 022a8439
...@@ -1261,7 +1261,7 @@ static void db_disasm_esc( ADDRESS64* addr, int inst, int short_addr, ...@@ -1261,7 +1261,7 @@ static void db_disasm_esc( ADDRESS64* addr, int inst, int short_addr,
* Normal address modes. * Normal address modes.
*/ */
db_read_address( addr, short_addr, regmodrm, &address); db_read_address( addr, short_addr, regmodrm, &address);
dbg_printf(fp->f_name); dbg_printf("%s", fp->f_name);
switch(fp->f_size) { switch(fp->f_size) {
case SNGL: p = "s"; break; case SNGL: p = "s"; break;
case DBLR: p = "l"; break; case DBLR: p = "l"; break;
...@@ -1463,15 +1463,15 @@ void be_i386_disasm_one_insn(ADDRESS64 *addr, int display) ...@@ -1463,15 +1463,15 @@ void be_i386_disasm_one_insn(ADDRESS64 *addr, int display)
if( db_display ) if( db_display )
{ {
if (size == WORD) if (size == WORD)
dbg_printf(i_name); dbg_printf("%s", i_name);
else else
dbg_printf(ip->i_extra); dbg_printf("%s", ip->i_extra);
} }
} }
else { else {
if( db_display ) if( db_display )
{ {
dbg_printf(i_name); dbg_printf("%s", i_name);
} }
if (i_size != NONE) { if (i_size != NONE) {
if (i_size == BYTE) { if (i_size == BYTE) {
......
...@@ -677,7 +677,7 @@ BOOL memory_get_register(DWORD regno, DWORD** value, char* buffer, int len) ...@@ -677,7 +677,7 @@ BOOL memory_get_register(DWORD regno, DWORD** value, char* buffer, int len)
else else
*value = div->pval; *value = div->pval;
if (buffer) snprintf(buffer, len, div->name); if (buffer) lstrcpynA(buffer, div->name, len);
return TRUE; return TRUE;
} }
} }
......
...@@ -650,7 +650,7 @@ void symbol_print_local(const SYMBOL_INFO* sym, ULONG base, ...@@ -650,7 +650,7 @@ void symbol_print_local(const SYMBOL_INFO* sym, ULONG base,
} }
else else
{ {
dbg_printf(buffer); dbg_printf("%s", buffer);
if (detailed) if (detailed)
dbg_printf(" (%s)", dbg_printf(" (%s)",
(sym->Flags & SYMFLAG_PARAMETER) ? "parameter" : "local"); (sym->Flags & SYMFLAG_PARAMETER) ? "parameter" : "local");
......
...@@ -716,7 +716,7 @@ int types_print_type(const struct dbg_type* type, BOOL details) ...@@ -716,7 +716,7 @@ int types_print_type(const struct dbg_type* type, BOOL details)
dbg_printf(")"); dbg_printf(")");
break; break;
case SymTagTypedef: case SymTagTypedef:
dbg_printf(name); dbg_printf("%s", name);
break; break;
default: default:
WINE_ERR("Unknown type %u for %s\n", tag, name); WINE_ERR("Unknown type %u for %s\n", tag, name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment