[Cmap-cvs] cmap IngitTable.cpp,1.12,1.13
Status: Beta
Brought to you by:
dyp
From: Denis P. <dy...@us...> - 2004-05-12 04:20:58
|
Update of /cvsroot/cmap/cmap In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24347 Modified Files: IngitTable.cpp Log Message: Do not copy attr value to the buffer which is not used. Just skip data. Index: IngitTable.cpp =================================================================== RCS file: /cvsroot/cmap/cmap/IngitTable.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- IngitTable.cpp 11 May 2004 21:30:00 -0000 1.12 +++ IngitTable.cpp 12 May 2004 04:20:46 -0000 1.13 @@ -148,21 +148,13 @@ } names_codif[Check_name_cod1(buf + pointer + 1)].num++; pointer += len_code + 1; - unsigned char buf_atr[4]; - char buf_atr_cod[256]; - short ATR_cod; + // Skip attr value pairs while (buf[pointer] != 0) { // 2 áàéòà àòðèáóòà - memcpy(buf_atr, buf + pointer, 2); - buf_atr[2] = 0; pointer += 2; - ATR_cod = attrToCode(buf_atr); - - unsigned int _n = 0; while (buf[pointer] != 0) - buf_atr_cod[_n++] = buf[pointer++]; - buf_atr_cod[_n] = 0; + pointer++; pointer++; } |