about summary refs log tree commit diff
path: root/stdio-common/bug3.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/bug3.c')
-rw-r--r--stdio-common/bug3.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stdio-common/bug3.c b/stdio-common/bug3.c
index 1684720b9f..3bb0158a21 100644
--- a/stdio-common/bug3.c
+++ b/stdio-common/bug3.c
@@ -7,8 +7,9 @@ DEFUN_VOID(main)
 {
   FILE *f;
   int i;
+  const char filename[] = "/tmp/bugtest";
 
-  f = fopen("/tmp/bugtest", "w+");
+  f = fopen(filename, "w+");
   for (i=0; i<9000; i++)
     putc ('x', f);
   fseek (f, 8180L, 0);
@@ -45,6 +46,7 @@ DEFUN_VOID(main)
     }
 
   fclose(f);
+  remove(filename);
 
   puts ("Test succeeded.");