From 818feababe2560ff50d893ae580683ef0b6357ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 25 Jan 2006 19:45:10 +0000 Subject: [PATCH] Fixed fputc() for the PPC platform (would only write null bytes due to big endian). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16090 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/boot/loader/stdio.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/system/boot/loader/stdio.cpp b/src/system/boot/loader/stdio.cpp index 6a6efeec28..48676d6e15 100644 --- a/src/system/boot/loader/stdio.cpp +++ b/src/system/boot/loader/stdio.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2003-2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Copyright 2003-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved. * Distributed under the terms of the MIT License. */ @@ -69,12 +69,13 @@ fprintf(FILE *file, const char *format, ...) int -fputc(int character, FILE *file) +fputc(int c, FILE *file) { if (file == NULL) return B_FILE_ERROR; status_t status; + char character = (char)c; // we only support direct console output right now... status = ((ConsoleNode *)file)->Write(&character, 1);