Skip to content

Commit e08d2dc

Browse files
committed
Restore null termination
1 parent dfda7ce commit e08d2dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/pdo_dblib/dblib_driver.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ static zend_string* dblib_handle_quoter(pdo_dbh_t *dbh, const zend_string *unquo
186186
*q++ = ZSTR_VAL(unquoted)[i];
187187
}
188188
}
189-
*q = '\'';
189+
*q++ = '\'';
190+
*q = '\0';
190191

191192
return quoted_str;
192193
}

0 commit comments

Comments
 (0)