|
|
| version 1.9, 2008/07/03 07:17:25 | version 1.10, 2008/07/04 11:56:40 |
|---|---|
| Line 200 public: | Line 200 public: |
| char *result=(char*)connection.services->malloc_atomic(length*2+1); | char *result=(char*)connection.services->malloc_atomic(length*2+1); |
| char *to=result; | char *to=result; |
| while(length--) { | while(length--) { |
| if(*from=='\'') { // ' -> '' | if(*from=='\'') // ' -> '' |
| *to++='\''; | *to++='\''; |
| } else if(*from=='\"') { // " -> "" | |
| *to++='\"'; | |
| } | |
| *to++=*from++; | *to++=*from++; |
| } | } |
| *to=0; | *to=0; |