mirror of https://github.com/BOINC/boinc.git
Fixed new unescape_string(): didn't null terminate string.
svn path=/trunk/boinc/; revision=9176
This commit is contained in:
parent
3527c41581
commit
2be5446559
|
@ -73,3 +73,10 @@ David 4 Jan 2006
|
|||
|
||||
db/
|
||||
db_base.C
|
||||
|
||||
Bruce 5 Jan 2006
|
||||
- Fixed new unescape_string(): didn't null terminate string.
|
||||
|
||||
db/
|
||||
db_base.C
|
||||
|
||||
|
|
|
@ -366,10 +366,11 @@ void unescape_string(char* p, int /*len*/) {
|
|||
while (*p) {
|
||||
if (*p == '\\') {
|
||||
p++;
|
||||
if (!*p) break; // SHOULD NEVER HAPPEN!
|
||||
}
|
||||
if (!*p) break;
|
||||
*q++ = *p++;
|
||||
}
|
||||
*q='\0';
|
||||
}
|
||||
|
||||
// replace _ with \\_, % with \\%
|
||||
|
|
Loading…
Reference in New Issue