about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/HTVMS_WaisProt.c
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library/Implementation/HTVMS_WaisProt.c')
-rw-r--r--WWW/Library/Implementation/HTVMS_WaisProt.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/WWW/Library/Implementation/HTVMS_WaisProt.c b/WWW/Library/Implementation/HTVMS_WaisProt.c
index 23b4a4f8..30feae62 100644
--- a/WWW/Library/Implementation/HTVMS_WaisProt.c
+++ b/WWW/Library/Implementation/HTVMS_WaisProt.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTVMS_WaisProt.c,v 1.8 2010/04/29 23:56:46 tom Exp $
+ * $LynxId: HTVMS_WaisProt.c,v 1.9 2010/09/24 23:51:22 tom Exp $
  *
  *							  HTVMS_WAISProt.c
  *
@@ -2114,8 +2114,8 @@ static query_term **makeWAISQueryTerms(DocObj **docs)
 		    char start[20], end[20];
 
 		    (doc->ChunkCode == CT_byte) ?
-			strncpy(chunk_att, BYTE, ATTRIBUTE_SIZE) :
-			strncpy(chunk_att, LINE, ATTRIBUTE_SIZE);
+			StrNCpy(chunk_att, BYTE, ATTRIBUTE_SIZE) :
+			StrNCpy(chunk_att, LINE, ATTRIBUTE_SIZE);
 		    sprintf(start, "%ld", doc->ChunkStart.Pos);
 		    startChunk = stringToAny(start);
 		    sprintf(end, "%ld", doc->ChunkEnd.Pos);
@@ -2123,7 +2123,7 @@ static query_term **makeWAISQueryTerms(DocObj **docs)
 		}
 		break;
 	    case CT_paragraph:
-		strncpy(chunk_att, PARAGRAPH, ATTRIBUTE_SIZE);
+		StrNCpy(chunk_att, PARAGRAPH, ATTRIBUTE_SIZE);
 		startChunk = doc->ChunkStart.ID;
 		endChunk = doc->ChunkEnd.ID;
 		break;
@@ -2453,13 +2453,13 @@ void writeWAISPacketHeader(char *header,
 	serverLen = 10;
 
     sprintf(lengthBuf, "%010ld", dataLen);
-    strncpy(header, lengthBuf, 10);
+    StrNCpy(header, lengthBuf, 10);
 
     header[10] = type & 0xFF;
     header[11] = version & 0xFF;
 
-    strncpy(serverBuf, server, serverLen);
-    strncpy((char *) (header + 12), serverBuf, serverLen);
+    StrNCpy(serverBuf, server, serverLen);
+    StrNCpy((char *) (header + 12), serverBuf, serverLen);
 
     header[22] = compression & 0xFF;
     header[23] = encoding & 0xFF;