# HG changeset patch # User Sean Egan # Date 1102461915 0 # Node ID 72f671a4e153159ce6354002d2ecbe155f35c307 # Parent 1657438d537bc372a254c13541d6d89978a2d09a [gaim-migrate @ 11533] a Zephyr fix from Erik Lee. committer: Tailor Script diff -r 1657438d537b -r 72f671a4e153 src/protocols/zephyr/ZLocations.c --- a/src/protocols/zephyr/ZLocations.c Tue Dec 07 04:59:27 2004 +0000 +++ b/src/protocols/zephyr/ZLocations.c Tue Dec 07 23:25:15 2004 +0000 @@ -5,7 +5,7 @@ * Created by: Robert French * * $Source$ - * $Author: chipx86 $ + * $Author: seanegan $ * * Copyright (c) 1987,1988,1991 by the Massachusetts Institute of Technology. * For copying and distribution information, see the file @@ -91,7 +91,8 @@ } #ifndef X_DISPLAY_MISSING if ((display = getenv("DISPLAY")) && *display) { - (void) strcpy(mytty, display); + (void) strncpy(mytty, sizeof(mytty), display); + mytty[sizeof(mytty)-1] = '\0'; } else { #endif ttyp = ttyname(0);