diff options
author | John Kohl <jtkohl@mit.edu> | 1988-06-25 13:47:25 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-06-25 13:47:25 +0000 |
commit | 7d4b59e20f81b19b6f0aeee8c54bec63461da140 (patch) | |
tree | bf629fc685544d109e316c96df49568c1c9d85fe /clients/zctl/zctl.c | |
parent | 26c4be47e09354bf87a87e9eec106b143f2463d2 (diff) |
zero out stack-allocated notices.
when setting location, be sure to restart the windowgram client
Diffstat (limited to 'clients/zctl/zctl.c')
-rw-r--r-- | clients/zctl/zctl.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/clients/zctl/zctl.c b/clients/zctl/zctl.c index 570b045..afe80d0 100644 --- a/clients/zctl/zctl.c +++ b/clients/zctl/zctl.c @@ -176,6 +176,7 @@ wgc_control(argc,argv) return; } + (void) bzero((char *)¬ice, sizeof(notice)); notice.z_kind = UNSAFE; notice.z_port = 0; notice.z_class = WG_CTL_CLASS; @@ -213,6 +214,7 @@ hm_control(argc,argv) return; } + (void) bzero((char *)¬ice, sizeof(notice)); notice.z_kind = HMCTL; notice.z_port = 0; notice.z_class = HM_CTL_CLASS; @@ -325,7 +327,10 @@ set_var(argc,argv) if (!strcmp(exp_level,EXPOSE_NONE)) { newargv[0] = "wg_shutdown"; wgc_control(1,newargv); - } + } else { + newargv[0] = "wg_startup"; + wgc_control(1,newargv); + } return; } } @@ -718,11 +723,9 @@ make_exist(filename) if (!(fpout = fopen(filename,"w"))) { (void) sprintf(errbuf,"while opening %s for write",filename); ss_perror(sci_idx,errno,errbuf); - (void) fclose(fp); return (1); } - (void) fclose(fp); if (fclose(fpout) == EOF) { (void) sprintf(errbuf, "while closing %s", filename); ss_perror(sci_idx, errno, errbuf); |