2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
* adaint.c (__gnat_tmp_name): Better, but good enough for now,
solution to buffer overflow bug on GNU/Linux.
From-SVN: r59220
+2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
+ * adaint.c (__gnat_tmp_name): Better, but good enough for now,
+ solution to buffer overflow bug on GNU/Linux.
+
2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
Closes PR ada/5856 and PR ada/6919 !
* bindgen.adb: Remove all references to Public_Version.
if (tmpdir == NULL)
strcpy (tmp_filename, "/tmp/gnat-XXXXXX");
else
- sprintf (tmp_filename, "%200s/gnat-XXXXXX", tmpdir);
+ sprintf (tmp_filename, "%.200s/gnat-XXXXXX", tmpdir);
close (mkstemp(tmp_filename));
#else