From: <du...@ma...> - 2009-06-27 18:44:38
|
Author: duane Date: 2009-06-27 18:44:35 +0200 (Sat, 27 Jun 2009) New Revision: 2406 Modified: trunk/src/helper/membuf.c Log: Switch to strotk() grr.... Modified: trunk/src/helper/membuf.c =================================================================== --- trunk/src/helper/membuf.c 2009-06-26 12:57:56 UTC (rev 2405) +++ trunk/src/helper/membuf.c 2009-06-27 16:44:35 UTC (rev 2406) @@ -58,11 +58,13 @@ if (pBuf) { pBuf->_strtoklast = NULL; *pLast = pBuf; - return strtok_r(((char *)(pBuf->buf)), sep, &(pBuf->_strtoklast)); + // this should be "strtok_r()" but windows lacks */ + return strtok(((char *)(pBuf->buf)), sep); } else { // recover our pBuf pBuf = *((struct membuf **)(pLast)); - return strtok_r(NULL, sep, &(pBuf->_strtoklast)); + // this should be "strtok_r()" but windows lacks */ + return strtok( NULL, sep); } } |