ports/www/mod_ruby/files/patch-connection.c
Dirk Meyer a30150ae6c - include new upstream patches
- drop dependency on eruby
Suggested by:	Ruslan Mahmatkhanov
Feature safe:	yes
2010-02-18 06:15:09 +00:00

20 lines
631 B
C

--- connection.c.orig 2007-07-31 09:03:53.000000000 +0200
+++ connection.c 2009-06-30 12:55:06.000000000 +0200
@@ -81,7 +81,7 @@
Data_Get_Struct(self, conn_rec, conn);
Check_Type(val, T_STRING);
conn->user = ap_pstrndup(conn->pool,
- RSTRING(val)->ptr, RSTRING(val)->len);
+ RSTRING_PTR(val), RSTRING_LEN(val));
return val;
}
@@ -92,7 +92,7 @@
Data_Get_Struct(self, conn_rec, conn);
Check_Type(val, T_STRING);
conn->ap_auth_type = ap_pstrndup(conn->pool,
- RSTRING(val)->ptr, RSTRING(val)->len);
+ RSTRING_PTR(val), RSTRING_LEN(val));
return val;
}
#endif