Commit Graph

5 Commits

Author SHA1 Message Date
Curtis Yarvin
5b4c4437ce Merge branch 'master' of github.com:urbit/urbit 2013-10-31 17:20:57 +00:00
Curtis Yarvin
91adaea16a Fix SO_REUSEPORT issue in linux. 2013-10-31 17:20:42 +00:00
Steven Dee
324c6a235d Remove most instances of strcpy and sprintf
OpenBSD whines about these and recommends using strlcpy / snprintf
instead. Since strlcpy isn't quite universal yet, we use strncpy instead
and be careful about terminating the string. We could implement a
portable strlcpy in terms of strncpy, but that'd add another function to
the namespace.

Yes, usually the length is obviously bounded. Still, pretending
strcpy/sprintf don't exist seems like a great strategy.

N.B. there are still a few occurrences of strcpy and sprintf under f/
and in libuv, but I don't have time to tackle them right now.
2013-10-30 15:25:22 -04:00
Curtis Yarvin
323d010724 Fix a memory leak per packet. 2013-10-04 22:33:26 +00:00
Christian Carter
3af3130bdc Cleaning up old code 2013-09-28 13:21:18 -07:00