diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-14 21:16:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-05-14 21:16:52 +0000 |
commit | 16702423142900702c4d825f9b806f9b19b77356 (patch) | |
tree | 7a91923989538dfd755191d8f6a88a4797530230 /usr.sbin/ctm | |
parent | dc315e71ee8035dff83bf123daa23e0faf00f467 (diff) |
more careful scanf
Diffstat (limited to 'usr.sbin/ctm')
-rw-r--r-- | usr.sbin/ctm/ctm_rmail/ctm_rmail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ctm/ctm_rmail/ctm_rmail.c b/usr.sbin/ctm/ctm_rmail/ctm_rmail.c index 3a3628e2d07..06897e35510 100644 --- a/usr.sbin/ctm/ctm_rmail/ctm_rmail.c +++ b/usr.sbin/ctm/ctm_rmail/ctm_rmail.c @@ -164,7 +164,7 @@ apply_complete() return; } - i = fscanf(fp, "%20s %d %c", class, &dn, junk); + i = fscanf(fp, "%19s %d %c", class, &dn, junk); fclose(fp); if (i != 2) { @@ -294,7 +294,7 @@ read_piece(char *input_file) char *s; int fd = -1; - if (sscanf(line, "CTM_MAIL BEGIN %30s %d %d %c", + if (sscanf(line, "CTM_MAIL BEGIN %29s %d %d %c", delta, &pce, &npieces, junk) != 3) continue; |