+Mon Jul 11 15:59:03 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
+
+ * nlmheader.y: Null terminate var_hdr->threadName.
+
Fri Jul 8 17:33:22 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
* Makefile.in (syslex.o, sysinfo.o): Permit C source files to be
#include <ansidecl.h>
#include <stdio.h>
#include <ctype.h>
-#include <bfd.h>
+#include "bfd.h"
#include "sysdep.h"
#include "bucomm.h"
#include "nlm/common.h"
free ($2);
free ($3);
free ($4);
+ if (version_hdr->month < 1 || version_hdr->month > 12)
+ nlmheader_warn ("illegal month", -1);
+ if (version_hdr->day < 1 || version_hdr->day > 31)
+ nlmheader_warn ("illegal day", -1);
+ if (version_hdr->year < 1900 || version_hdr->year > 3000)
+ nlmheader_warn ("illegal year", -1);
}
| DEBUG
{
fixed_hdr->flags &=~ nlmlex_get_number ($2);
free ($2);
}
+ | FULLMAP
+ {
+ map_file = "";
+ full_map = true;
+ }
| FULLMAP STRING
{
map_file = $2;
{
input_files = string_list_append (input_files, $2);
}
+ | MAP
+ {
+ map_file = "";
+ }
| MAP STRING
{
map_file = $2;
}
var_hdr->threadNameLength = len;
strncpy (var_hdr->threadName, $2, len);
- var_hdr->screenName[NLM_MAX_THREAD_NAME_LENGTH] = '\0';
+ var_hdr->threadName[len] = '\0';
free ($2);
}
| TYPE STRING