summaryrefslogtreecommitdiff
path: root/ws2a/showbug.c
diff options
context:
space:
mode:
Diffstat (limited to 'ws2a/showbug.c')
-rw-r--r--ws2a/showbug.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ws2a/showbug.c b/ws2a/showbug.c
index a92776e..2e57076 100644
--- a/ws2a/showbug.c
+++ b/ws2a/showbug.c
@@ -16,7 +16,10 @@ int main(){
return 1;
}
long long last = 0;
- fscanf(lastfilenum,"%lld",&last);
+ if(fscanf(lastfilenum,"%lld",&last) < 1){
+ printf("Error finding file id");
+ return 1;
+ }
fclose(lastfilenum);
long long thisid = 0;
sscanf(data,"id=%lld",&thisid);
@@ -39,4 +42,5 @@ int main(){
putchar(fgetc(bugfile));
}
fclose(bugfile);
+ return 0;
}