about summary refs log tree commit diff stats
path: root/src/chrtrans
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2010-09-26 14:26:23 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2010-09-26 14:26:23 -0400
commitbf9ea0cbb0562934c45170f94ebfe2ac609a44a8 (patch)
treef4bde48763d66ed00b176397aee2b3fd6e9fc7f5 /src/chrtrans
parent69a1a751cb798556c786e3ef66d473bf8a88abdc (diff)
downloadlynx-snapshots-bf9ea0cbb0562934c45170f94ebfe2ac609a44a8.tar.gz
snapshot of project "lynx", label v2-8-8dev_5e
Diffstat (limited to 'src/chrtrans')
-rw-r--r--src/chrtrans/makeuctb.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/chrtrans/makeuctb.c b/src/chrtrans/makeuctb.c
index 1858474c..e76e0f6f 100644
--- a/src/chrtrans/makeuctb.c
+++ b/src/chrtrans/makeuctb.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: makeuctb.c,v 1.45 2010/09/22 08:31:45 tom Exp $
+ * $LynxId: makeuctb.c,v 1.46 2010/09/24 09:52:56 tom Exp $
  *
  *  makeuctb.c, derived from conmakehash.c   - kw
  *
@@ -361,7 +361,7 @@ int main(int argc, char **argv)
     /*
      *  Now we comes to the tricky part.  Parse the input table.
      */
-    while (fgets(buffer, sizeof(buffer), ctbl) != NULL) {
+    while (fgets(buffer, (int) sizeof(buffer), ctbl) != NULL) {
 	if ((p = strchr(buffer, '\n')) != NULL) {
 	    *p = '\0';
 	} else {
@@ -649,7 +649,7 @@ int main(int argc, char **argv)
 	    while (*p == ' ' || *p == '\t') {
 		p++;
 	    }
-	    if (!strncmp(p, "idem", 4)) {
+	    if (!StrNCmp(p, "idem", 4)) {
 		for (i = fp0; i <= fp1; i++) {
 		    addpair(i, i);
 		}
@@ -697,7 +697,7 @@ int main(int argc, char **argv)
 	    while (*p == ' ' || *p == '\t') {
 		p++;
 	    }
-	    if (!strncmp(p, "idem", 4)) {
+	    if (!StrNCmp(p, "idem", 4)) {
 		addpair(fp0, fp0);
 		p += 4;
 	    }
@@ -743,9 +743,9 @@ int main(int argc, char **argv)
     }
 
     if (argc > 3) {
-	strncpy(this_MIMEcharset, argv[3], UC_MAXLEN_MIMECSNAME);
+	StrNCpy(this_MIMEcharset, argv[3], UC_MAXLEN_MIMECSNAME);
     } else if (this_MIMEcharset[0] == '\0') {
-	strncpy(this_MIMEcharset, tblname, UC_MAXLEN_MIMECSNAME);
+	StrNCpy(this_MIMEcharset, tblname, UC_MAXLEN_MIMECSNAME);
 	if ((p = strchr(this_MIMEcharset, '.')) != 0) {
 	    *p = '\0';
 	}
@@ -754,13 +754,13 @@ int main(int argc, char **argv)
 	*p = (char) TOLOWER(*p);
     }
     if (argc > 4) {
-	strncpy(this_LYNXcharset, argv[4], UC_MAXLEN_LYNXCSNAME);
+	StrNCpy(this_LYNXcharset, argv[4], UC_MAXLEN_LYNXCSNAME);
     } else if (this_LYNXcharset[0] == '\0') {
-	strncpy(this_LYNXcharset, this_MIMEcharset, UC_MAXLEN_LYNXCSNAME);
+	StrNCpy(this_LYNXcharset, this_MIMEcharset, UC_MAXLEN_LYNXCSNAME);
     }
 
     if (this_isDefaultMap == -1) {
-	this_isDefaultMap = !strncmp(this_MIMEcharset, "iso-8859-1", 10);
+	this_isDefaultMap = !StrNCmp(this_MIMEcharset, "iso-8859-1", 10);
     }
     fprintf(stderr,
 	    "makeuctb: %s: %stranslation map",