- Timestamp:
- Feb 26, 2011, 8:10:30 PM (13 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- 9620c8d
- Parents:
- cb6c9e1
- git-author:
- David Benjamin <davidben@mit.edu> (01/04/11 11:15:08)
- git-committer:
- David Benjamin <davidben@mit.edu> (02/26/11 20:10:30)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
message.c
r237d02c rf54b07d 960 960 void owl_message_create_from_zwrite(owl_message *m, const owl_zwrite *z, const char *body) 961 961 { 962 int ret;963 char hostbuff[5000];964 962 char *replyline; 965 963 … … 991 989 992 990 /* save the hostname */ 993 ret=gethostname(hostbuff, MAXHOSTNAMELEN); 994 hostbuff[MAXHOSTNAMELEN]='\0'; 995 if (ret) { 996 owl_message_set_hostname(m, "localhost"); 997 } else { 998 owl_message_set_hostname(m, hostbuff); 999 } 991 owl_message_set_hostname(m, g_get_host_name()); 1000 992 1001 993 /* set the "isprivate" attribute if it's a private zephyr. */
Note: See TracChangeset
for help on using the changeset viewer.