From 2050cb6e82ec8201b8ceab0684c057add361e232 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sun, 1 May 2011 02:03:47 -0700 Subject: [PATCH] Revert misguided change. --- src/microcode/outf.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/microcode/outf.c b/src/microcode/outf.c index c8ffeffb7..1daa0b1ea 100644 --- a/src/microcode/outf.c +++ b/src/microcode/outf.c @@ -168,22 +168,10 @@ outf_flush_error (void) fflush (stderr); } -static unsigned int -find_fatal_buf_nul (void) -{ - unsigned int scan = 0; - while (scan < MAX_FATAL_BUF) - if ((fatal_buf[scan++]) == '\0') - return (scan - 1); - /* There's no NUL character in the buffer. */ - (fatal_buf[0]) = '\0'; - return (0); -} - void voutf_fatal (const char * format, va_list args) { - unsigned int end = (find_fatal_buf_nul ()); + unsigned int end = (strlen (fatal_buf)); VSNPRINTF ((& (fatal_buf[end])), (MAX_FATAL_BUF - end), format, args); } -- 2.25.1