239 |
} |
} |
240 |
|
|
241 |
do { |
do { |
242 |
printf("command: "); |
printf("cmd: "); |
243 |
fgets(buf, LINE_MAX, stdin); |
fgets(buf, LINE_MAX, stdin); |
244 |
c = buf; |
c = buf; |
245 |
for (;; c++) { |
for (;; c++) { |
294 |
xstrncpy(passphr, p[0], PASSPHRASE_LEN - 1); |
xstrncpy(passphr, p[0], PASSPHRASE_LEN - 1); |
295 |
sfree(p[0]); |
sfree(p[0]); |
296 |
sfree(p[1]); |
sfree(p[1]); |
297 |
} else if (*c == 's') { |
} else if (*c == 's' || *c == 'w') { |
298 |
store_passwords(accts); |
store_passwords(accts); |
299 |
} else if (*c == 'x') { |
} else if (*c == 'x') { |
300 |
store_passwords(accts); |
store_passwords(accts); |