summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ws2a/bugcomment.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ws2a/bugcomment.c b/ws2a/bugcomment.c
index d4fa5ab..3109e68 100644
--- a/ws2a/bugcomment.c
+++ b/ws2a/bugcomment.c
@@ -102,7 +102,7 @@ int main(){
//Check captcha
char captchapath[100];
char* captchadecoded = replaceHTML(captcha);
- sprintf(captchapath,"../ws2a/captchas/%s",captchadecoded);
+ sprintf(captchapath,"../ws2a/captchas/%s.txt",captchadecoded);
free(captchadecoded);
FILE* captchafile = fopen(captchapath,"r");
if(captchafile == NULL){
@@ -117,7 +117,7 @@ int main(){
return;
}
char command[100];
- sprintf(command,"rm \"%s\"",captchapath);
+ sprintf(command,"rm \"%s.txt\"",captchapath);
system(command);
printf("Captcha correct, and deleted");