mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-01 07:50:49 +00:00
* choose-temp.c (choose_temp_base): Check the result of the call
to mktemp rather than testing the length of the modified string.
This commit is contained in:
parent
79baeb1eb2
commit
cc0732ba28
@ -1,3 +1,8 @@
|
||||
2007-01-12 Ben Elliston <bje@au.ibm.com>
|
||||
|
||||
* choose-temp.c (choose_temp_base): Check the result of the call
|
||||
to mktemp rather than testing the length of the modified string.
|
||||
|
||||
2006-12-20 Geoffrey Keating <geoffk@apple.com>
|
||||
|
||||
* cp-demangle.h: Add comment explaining what to do to avoid
|
||||
|
@ -65,8 +65,7 @@ choose_temp_base (void)
|
||||
strcpy (temp_filename, base);
|
||||
strcpy (temp_filename + len, TEMP_FILE);
|
||||
|
||||
mktemp (temp_filename);
|
||||
if (strlen (temp_filename) == 0)
|
||||
if (mktemp (temp_filename) == 0)
|
||||
abort ();
|
||||
return temp_filename;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user