diff options
author | John Kohl <jtkohl@mit.edu> | 1989-11-15 07:00:51 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1989-11-15 07:00:51 +0000 |
commit | 4459494863c40c1d4157a043ef159f105b87a0ad (patch) | |
tree | 19de15e8539a97c87246cb03c1ba22999bf2a197 /clients/zctl/zctl.c | |
parent | e85c1cf099e4c6b863675623fd59c0c711fd1239 (diff) |
fix error in unsubscription handling
Diffstat (limited to 'clients/zctl/zctl.c')
-rw-r--r-- | clients/zctl/zctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clients/zctl/zctl.c b/clients/zctl/zctl.c index 826e517..54e690f 100644 --- a/clients/zctl/zctl.c +++ b/clients/zctl/zctl.c @@ -703,8 +703,9 @@ load_subs(argc,argv) if (type == UNSUB) continue; unsubs[unind].class = - malloc((unsigned)(strlen(subline)+1)); - (void) strcpy(unsubs[unind].class,subline); + malloc((unsigned)(strlen(subline))); + /* skip the leading '!' */ + (void) strcpy(unsubs[unind].class,subline+1); unsubs[unind].classinst = malloc((unsigned)(strlen(comma+1)+1)); (void) strcpy(unsubs[unind].classinst,comma+1); |