blob: d0d877dca3dc14402eac1893ce8c3d4e54074a75 [file] [log] [blame]
https://bugzilla.gnome.org/show_bug.cgi?id=780690
--- src/uri.c
+++ src/uri.c
@@ -334,7 +335,7 @@ xmlParse3986Port(xmlURIPtr uri, const char **str)
cur++;
}
if (uri != NULL)
- uri->port = port & INT_MAX; /* port value modulo INT_MAX+1 */
+ uri->port = port & USHRT_MAX; /* port value modulo USHRT_MAX+1 */
*str = cur;
return(0);
}