This fixes ! to work as documented in a memory region attribute list.
[deliverable/binutils-gdb.git] / opcodes / dis-buf.c
index 34384347f8ca368f684421ba4aae0cce2b36e381..d76be2ec8721983bfddc695e7d21cbc083c340c1 100644 (file)
@@ -81,15 +81,15 @@ generic_strcat_address (addr, buf, len)
      int len;
 {
   if (buf != (char *)NULL && len > 0)
-  {
-    char tmpBuf[30];
+    {
+      char tmpBuf[30];
 
-    sprintf(tmpBuf, "0x%x", addr);
-    if ((strlen(buf) + strlen(tmpBuf)) <= len)
-      strcat(buf, tmpBuf);
-    else
-      strncat(buf, tmpBuf, (len - strlen(buf)));
-  }
+      sprintf_vma (tmpBuf, addr);
+      if ((strlen (buf) + strlen (tmpBuf)) <= len)
+       strcat (buf, tmpBuf);
+      else
+       strncat (buf, tmpBuf, (len - strlen(buf)));
+    }
   return;
 }
 
This page took 0.023527 seconds and 4 git commands to generate.