Replace some more qsort calls with std::sort
[deliverable/binutils-gdb.git] / gdb / c-exp.y
index 439a72a10de426d4e8cbf853178b4baef0720411..e0abbd83ddb0ef32c4e99a2ea812313cf8ef721f 100644 (file)
@@ -3291,9 +3291,9 @@ yylex (void)
   if (checkpoint > 0)
     {
       current.value.sval.ptr
-       = (const char *) obstack_copy0 (&cpstate->expansion_obstack,
-                                       current.value.sval.ptr,
-                                       current.value.sval.length);
+       = obstack_strndup (&cpstate->expansion_obstack,
+                          current.value.sval.ptr,
+                          current.value.sval.length);
 
       token_fifo[0] = current;
       if (checkpoint > 1)
This page took 0.024944 seconds and 4 git commands to generate.