diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-04-03 13:14:59 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-04-03 13:14:59 +0100 |
| commit | 04a922fe1a3e6f510279c8656556ef448ab54e76 (patch) | |
| tree | 83b1893032def89124cb4a755637e1b1a43a474b | |
| parent | 71766856901c85ccb087219b7ec2e6daf01d586d (diff) | |
Avoid zstr in write_debug when no *debug* buffer can be created
| -rw-r--r-- | src/debug.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/debug.cc b/src/debug.cc index 713124ee..799bffb8 100644 --- a/src/debug.cc +++ b/src/debug.cc @@ -13,7 +13,8 @@ void write_debug(StringView str) { if (not BufferManager::has_instance()) { - fprintf(stderr, "%s\n", (const char*)str.zstr()); + write(2, str.data(), (int)str.length()); + write(2, "\n", 1); return; } |
