diff options
Diffstat (limited to 'plugins/Clist_modern/src/modern_row.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_row.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Clist_modern/src/modern_row.cpp b/plugins/Clist_modern/src/modern_row.cpp index a6bac28ed0..cbcb0265ef 100644 --- a/plugins/Clist_modern/src/modern_row.cpp +++ b/plugins/Clist_modern/src/modern_row.cpp @@ -79,7 +79,7 @@ ROWCELL *cppInitModernRow(ROWCELL ** tabAccess) { fsize = _filelength(_fileno(hFile)); tmplbuf = (char*)malloc(fsize+1); - ZeroMemory(tmplbuf, fsize+1); + memset(tmplbuf, 0, (fsize + 1)); for (i=0; i < fsize; i++) tmplbuf[i] = getc(hFile); tmplbuf[i] = 0; @@ -126,7 +126,7 @@ void cppCalculateRowItemsPos(ROWCELL *RowRoot, int width) const ROWCELL * rowAddCell(ROWCELL* &link, int cont) { link = (ROWCELL*)malloc(sizeof(ROWCELL)); - ZeroMemory(link, sizeof(ROWCELL)); + memset(link, 0, sizeof(ROWCELL)); link->cont = cont; return link; } @@ -165,7 +165,7 @@ char * rowParserGetNextWord(char *tbuf, int &hbuf) int j = -1; - ZeroMemory(buf, 256); + memset(buf, 0, sizeof(buf)); while(tbuf[hbuf] != 0) { |