diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2010-09-26 14:26:23 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2010-09-26 14:26:23 -0400 |
commit | bf9ea0cbb0562934c45170f94ebfe2ac609a44a8 (patch) | |
tree | f4bde48763d66ed00b176397aee2b3fd6e9fc7f5 /WWW/Library/Implementation/HTVMS_WaisProt.c | |
parent | 69a1a751cb798556c786e3ef66d473bf8a88abdc (diff) | |
download | lynx-snapshots-bf9ea0cbb0562934c45170f94ebfe2ac609a44a8.tar.gz |
snapshot of project "lynx", label v2-8-8dev_5e
Diffstat (limited to 'WWW/Library/Implementation/HTVMS_WaisProt.c')
-rw-r--r-- | WWW/Library/Implementation/HTVMS_WaisProt.c | 14 |
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; |