summaryrefslogtreecommitdiff
path: root/graphics/asymptote/runfile.in
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/asymptote/runfile.in')
-rw-r--r--graphics/asymptote/runfile.in5
1 files changed, 1 insertions, 4 deletions
diff --git a/graphics/asymptote/runfile.in b/graphics/asymptote/runfile.in
index f1554940f3..da08d523ef 100644
--- a/graphics/asymptote/runfile.in
+++ b/graphics/asymptote/runfile.in
@@ -145,10 +145,7 @@ string getc(file *f)
{
char c=0;
if(f->isOpen()) f->read(c);
- static char str[2];
- str[0]=c;
- str[1]=0;
- return string(str);
+ return string(1,c);
}
Int tell(file *f)