Patch by Martin Storsjö <$firstname()$firstname,st>.
Originally committed as revision 21080 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -54,7 +54,7 @@ int inet_aton (const char * str, struct in_addr * add) |
| 54 | 54 |
|
| 55 | 55 |
if (!add1 || (add1|add2|add3|add4) > 255) return 0; |
| 56 | 56 |
|
| 57 |
- add->s_addr=(add4<<24)+(add3<<16)+(add2<<8)+add1; |
|
| 57 |
+ add->s_addr = htonl((add1 << 24) + (add2 << 16) + (add3 << 8) + add4); |
|
| 58 | 58 |
|
| 59 | 59 |
return 1; |
| 60 | 60 |
} |