Skip to content

Commit 3eb5e4e

Browse files
committed
Fix pointers
1 parent 8a7fb80 commit 3eb5e4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ibase_service.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,14 @@ PHP_FUNCTION(ibase_service_attach)
251251
if(ulen > 0){
252252
buf[p++] = isc_spb_user_name;
253253
buf[p++] = (char)ulen;
254-
memcpy(&buf[p], &user, ulen);
254+
memcpy(&buf[p], user, ulen);
255255
p += ulen;
256256
}
257257

258258
if(plen > 0){
259259
buf[p++] = isc_spb_password;
260260
buf[p++] = (char)plen;
261-
memcpy(&buf[p], &pass, plen);
261+
memcpy(&buf[p], pass, plen);
262262
p += plen;
263263
}
264264

0 commit comments

Comments
 (0)