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,
* Normal address modes.
*/
db_read_address( addr, short_addr, regmodrm, &address);
dbg_printf(fp->f_name);
dbg_printf("%s", fp->f_name);
switch(fp->f_size) {
case SNGL: p = "s"; break;
case DBLR: p = "l"; break;
......@@ -1463,15 +1463,15 @@ void be_i386_disasm_one_insn(ADDRESS64 *addr, int display)
if( db_display )
{
if (size == WORD)
dbg_printf(i_name);
dbg_printf("%s", i_name);
else
dbg_printf(ip->i_extra);
dbg_printf("%s", ip->i_extra);
}
}
else {
if( db_display )
{
dbg_printf(i_name);
dbg_printf("%s", i_name);
}
if (i_size != NONE) {
if (i_size == BYTE) {
......
......@@ -677,7 +677,7 @@ BOOL memory_get_register(DWORD regno, DWORD** value, char* buffer, int len)
else
*value = div->pval;
if (buffer) snprintf(buffer, len, div->name);
if (buffer) lstrcpynA(buffer, div->name, len);
return TRUE;
}
}
......
......@@ -650,7 +650,7 @@ void symbol_print_local(const SYMBOL_INFO* sym, ULONG base,
}
else
{
dbg_printf(buffer);
dbg_printf("%s", buffer);
if (detailed)
dbg_printf(" (%s)",
(sym->Flags & SYMFLAG_PARAMETER) ? "parameter" : "local");
......
......@@ -716,7 +716,7 @@ int types_print_type(const struct dbg_type* type, BOOL details)
dbg_printf(")");
break;
case SymTagTypedef:
dbg_printf(name);
dbg_printf("%s", name);
break;
default:
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