summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>1994-11-11 22:48:18 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>1994-11-11 22:48:18 +0000
commit5d2d6dac339a9e33012608334f381dfcb444a93e (patch)
tree2cf0c3b513d0b09959e4d1cd81830e8852c4923d /clients
parent2dcf4c8ec82ede952c48a4a9c99ce80b90d1295a (diff)
A bug fix from Sal; the use of XawAsciiSourceFreeString() was wrong.
Diffstat (limited to 'clients')
-rw-r--r--clients/xzwrite/GetString.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/clients/xzwrite/GetString.c b/clients/xzwrite/GetString.c
index 2a5faaf..3195c26 100644
--- a/clients/xzwrite/GetString.c
+++ b/clients/xzwrite/GetString.c
@@ -80,11 +80,13 @@ int GetString(getStringWindow, label, value, pop_type, buf, len)
if (accepted) {
char *s;
+ Widget text_source;
- XtVaGetValues(edit, XtNstring, (XtArgVal) &s, NULL);
+ XtVaGetValues(edit, XtNstring, (XtArgVal) &s, XtNtextSource,
+ (XtArgVal) &text_source, NULL);
strncpy(buf, s, len-2);
buf[len-1] = '\0';
- XawAsciiSourceFreeString(edit);
+ XawAsciiSourceFreeString(text_source);
return GETSTRING_ACCEPT;
}