summaryrefslogtreecommitdiff
path: root/huffman.c
diff options
context:
space:
mode:
Diffstat (limited to 'huffman.c')
-rw-r--r--huffman.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/huffman.c b/huffman.c
index 9d6aa7e..b16ceab 100644
--- a/huffman.c
+++ b/huffman.c
@@ -263,9 +263,7 @@ do {
*/
/* wordptr=wordcatarray[abs_randwc((long)WORDCATSIZE)];*/
wordptr=wordcatarray[abs_randwc((int32_t)WORDCATSIZE)];
-MoveMemory((void *)myword,
- (void *)wordptr,
- (unsigned long)strlen(wordptr)+1);
+memmove(myword, wordptr, strlen(wordptr) + 1);
/*
** Append a blank.
@@ -282,7 +280,7 @@ if((tomove+charssofar)>nchars)
/*
** Attach the word to the current line. Increment counter.
*/
-MoveMemory((void *)dt,(void *)myword,(unsigned long)tomove);
+memmove(dt, myword, tomove);
charssofar+=tomove;
dt+=tomove;