+2001-07-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * gcc.c (process_command): Don't assign elements of a const char*.
+
Wed Jul 4 13:40:02 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* emit-rtl.c (change_address): Don't abort if invalid address while
if (! IS_DIR_SEPARATOR (value [len - 1])
&& is_directory (value, "", 0))
{
- value = strcpy (xmalloc (len + 2), value);
- value[len] = DIR_SEPARATOR;
- value[++ len] = 0;
+ char *tmp = xmalloc (len + 2);
+ strcpy (tmp, value);
+ tmp[len] = DIR_SEPARATOR;
+ tmp[++ len] = 0;
+ value = tmp;
}
/* As a kludge, if the arg is "[foo/]stageN/", just