PR binutils/1437
[deliverable/binutils-gdb.git] / gdb / bsd-uthread.c
index aa3425d73f917e6712e0e27085c76744dbd3c1ec..9004b4084730adc4d7704eeaa07c7ac1e25fab79 100644 (file)
@@ -469,11 +469,9 @@ bsd_uthread_pid_to_str (ptid_t ptid)
   if (ptid_get_tid (ptid) != 0)
     {
       static char buf[64];
-      int size;
 
-      size = snprintf (buf, sizeof buf, "process %d, thread 0x%lx",
-                      ptid_get_pid (ptid), ptid_get_tid (ptid));
-      gdb_assert (size < sizeof buf);
+      xsnprintf (buf, sizeof buf, "process %d, thread 0x%lx",
+                ptid_get_pid (ptid), ptid_get_tid (ptid));
       return buf;
     }
 
This page took 0.022944 seconds and 4 git commands to generate.