* valops.c (value_assign): Respect parent offset when
[deliverable/binutils-gdb.git] / gdb / ada-exp.y
index ee0fcf3ba2a6189f7cb0c0a2ac9b246a220f86e8..1d3c6193cbc8c7474b6b112640e3e71460534f74 100644 (file)
@@ -1452,7 +1452,7 @@ convert_char_literal (struct type *type, LONGEST val)
 
   if (type == NULL || TYPE_CODE (type) != TYPE_CODE_ENUM)
     return val;
-  sprintf (name, "QU%02x", (int) val);
+  xsnprintf (name, sizeof (name), "QU%02x", (int) val);
   for (f = 0; f < TYPE_NFIELDS (type); f += 1)
     {
       if (strcmp (name, TYPE_FIELD_NAME (type, f)) == 0)
This page took 0.023337 seconds and 4 git commands to generate.