comparison src/protocols/zephyr/ZLocations.c @ 10328:0e9be9a1d68d

[gaim-migrate @ 11535] I'll take "Reasons why -Wall is a good thing" for 400. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 08 Dec 2004 00:24:37 +0000
parents 72f671a4e153
children 5727afad0fb8
comparison
equal deleted inserted replaced
10327:d88ee1d73a93 10328:0e9be9a1d68d
3 * ZFlushMyLocations functions. 3 * ZFlushMyLocations functions.
4 * 4 *
5 * Created by: Robert French 5 * Created by: Robert French
6 * 6 *
7 * $Source$ 7 * $Source$
8 * $Author: seanegan $ 8 * $Author: thekingant $
9 * 9 *
10 * Copyright (c) 1987,1988,1991 by the Massachusetts Institute of Technology. 10 * Copyright (c) 1987,1988,1991 by the Massachusetts Institute of Technology.
11 * For copying and distribution information, see the file 11 * For copying and distribution information, see the file
12 * "mit-copyright.h". 12 * "mit-copyright.h".
13 */ 13 */
89 (void) strncpy(host, hent->h_name, sizeof(host)); 89 (void) strncpy(host, hent->h_name, sizeof(host));
90 host[sizeof(host) - 1] = '\0'; 90 host[sizeof(host) - 1] = '\0';
91 } 91 }
92 #ifndef X_DISPLAY_MISSING 92 #ifndef X_DISPLAY_MISSING
93 if ((display = getenv("DISPLAY")) && *display) { 93 if ((display = getenv("DISPLAY")) && *display) {
94 (void) strncpy(mytty, sizeof(mytty), display); 94 (void) strncpy(mytty, display, sizeof(mytty));
95 mytty[sizeof(mytty)-1] = '\0'; 95 mytty[sizeof(mytty)-1] = '\0';
96 } else { 96 } else {
97 #endif 97 #endif
98 ttyp = ttyname(0); 98 ttyp = ttyname(0);
99 if (ttyp && *ttyp) { 99 if (ttyp && *ttyp) {