Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!dev!dgis!sdussin From: sdussin@dgis.dtic.dla.mil (Steve Dussinger) Newsgroups: comp.unix.questions Subject: Problems with CURSES on Vax11/780 Keywords: Vax unix curses programming c Message-ID: <678@dgis.dtic.dla.mil> Date: 29 Nov 89 21:57:34 GMT Organization: Defense Technical Information Center (DTIC), Alexandria VA Lines: 38 I am having some difficulty using CURSES on a VAX 11/780, and was wondering if someone out there could give me some help. The problem is, I have created a window (usnig newwin), that is 10 rows by 60 columns on a Vt100. Into this window I attempt to print a string of _exactly_ 600 characters, using: wprintw(window,"%s",buffer); where window is of type WINDOW *, and buffer is of type char *. When I attempt to print this 600-char string, I get a Segmentation Violation. The strange thing about this is, if I try to print the buffer above, one char at a time, using: wprintw(window,"%c",*buffer++); The program works fine. The other interesting thing is, when I initially built the program, I used a smaller window. In the smaller version printing the string all at once worked fine, but when I increased the size of the window and buffer, it all fell apart. Does anyone out there have any idea what I'm doing wrong?? I can't find anything wrong with the code, all my pointers are correct, and the string I'm tryin to print is null-terminated and exactly 600 chars. I'm starting to lose my mind, here. Somebody please help.... Thanx in advance, Steve Dussinger sdussin@dgis.dtic.dla.mil sdussin@dev.dtic.dla.mil