Browse code

- fixed wrong variable used in get_to_uid, reported by Jan Andres

Jan Janak authored on 04/02/2008 13:54:47
Showing 1 changed files
... ...
@@ -159,7 +159,7 @@ int get_to_uid(str* uid, struct sip_msg* msg)
159 159
 			DBG("get_to_uid: Username too long\n");
160 160
 			return -1;
161 161
 		}
162
-		memcpy(buf, puri.user.s, puri.user.len);
162
+		memcpy(buf, p, uid->len);
163 163
 		uid->s = buf;
164 164
 		strlower(uid);
165 165