From b69571f510438d015f39c060926f99a7158c10f0 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 8 Feb 2002 23:12:16 +0000 Subject: * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf changes. (_initialize_check_for_gdb_ini): Ditto. --- gdb/windows-nat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/windows-nat.c') diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index fa0d0b4..dcc3d33 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1763,9 +1763,9 @@ cygwin_pid_to_str (ptid_t ptid) int pid = PIDGET (ptid); if ((DWORD) pid == current_event.dwProcessId) - xasprintf (buf, "process %d", pid); + sprintf (buf, "process %d", pid); else - xasprintf (buf, "thread %ld.0x%x", current_event.dwProcessId, pid); + sprintf (buf, "thread %ld.0x%x", current_event.dwProcessId, pid); return buf; } @@ -2009,7 +2009,7 @@ _initialize_check_for_gdb_ini (void) { int len = strlen (oldini); char *newini = alloca (len + 1); - xasprintf (newini, "%.*s.gdbinit", + sprintf (newini, "%.*s.gdbinit", (int) (len - (sizeof ("gdb.ini") - 1)), oldini); warning ("obsolete '%s' found. Rename to '%s'.", oldini, newini); } -- cgit v1.1