mirror of
https://github.com/caseyscarborough/keylogger.git
synced 2020-11-18 19:53:40 -08:00
Exit on log clear.
This commit is contained in:
parent
4a1e66b674
commit
09be41a8d2
@ -23,8 +23,9 @@ int main(int argc, const char *argv[]) {
|
|||||||
if(argc == 2) {
|
if(argc == 2) {
|
||||||
if(strcmp(argv[1], "clear") == 0) {
|
if(strcmp(argv[1], "clear") == 0) {
|
||||||
fopen(logfileLocation, "w");
|
fopen(logfileLocation, "w");
|
||||||
printf("Logfile cleared.\n");
|
printf("%s cleared.\n", logfileLocation);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
|
exit(1);
|
||||||
} else {
|
} else {
|
||||||
logfileLocation = argv[1];
|
logfileLocation = argv[1];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user