/****************************************************************************
- * Copyright (c) 1998-2011,2012 Free Software Foundation, Inc. *
+ * Copyright (c) 1998-2012,2013 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
#define TRACE_OUT(p) /*nothing */
#endif
-MODULE_ID("$Id: write_entry.c,v 1.87 2012/12/29 23:12:22 tom Exp $")
+MODULE_ID("$Id: write_entry.c,v 1.90 2013/11/16 19:58:14 tom Exp $")
static int total_written;
char dir[sizeof(LEAF_FMT)];
char *s = 0;
- if (code == 0 || (s = strchr(dirnames, code)) == 0)
+ if (code == 0 || (s = (strchr) (dirnames, code)) == 0)
_nc_err_abort("Illegal terminfo subdirectory \"" LEAF_FMT "\"", code);
if (verified[s - dirnames])
char name_list[MAX_TERMINFO_LENGTH];
char *first_name, *other_names;
char *ptr;
- const char *term_names = tp->term_names;
+ char *term_names = tp->term_names;
size_t name_size = strlen(term_names);
if (name_size == 0) {
buffer[0] = 2;
key.data = name_list;
- key.size = name_size;
+ key.size = strlen(name_list);
_nc_STRCPY(buffer + 1,
term_names,