From 22d5135d5899a4388f59531bf100a79557961bb8 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 11 May 2016 21:32:28 -0400 Subject: Modified newbug so that it writes to the correct file --- ws2a/newbug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ws2a/newbug.c b/ws2a/newbug.c index 6166341..8c3d863 100644 --- a/ws2a/newbug.c +++ b/ws2a/newbug.c @@ -171,7 +171,7 @@ int main(){ char newfilepath[100]; sprintf(newfilepath,"../ws2a/bugs/%llu",lastbug); FILE* newfile = fopen(newfilepath,"w"); - fprintf(lastbugfile,"%s\n%s\n%s%s\n0:\n%s\n",dname,duid,asctime(timeinfo),dshortd,dlongd); + fprintf(newfile,"%s\n%s\n%s%s\n0:\n%s\n",dname,duid,asctime(timeinfo),dshortd,dlongd); fclose(newfile); free(dname); free(duid); -- cgit v1.2.3-70-g09d2