From: Chris Hanson Date: Fri, 6 Jan 1995 22:12:13 +0000 (+0000) Subject: Eliminate extra period in OS/2 error messages. X-Git-Tag: 20090517-FFI~6781 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=1e5247a16e04eb73556560c1b431e58058176e52;p=mit-scheme.git Eliminate extra period in OS/2 error messages. --- diff --git a/v7/src/microcode/os2top.c b/v7/src/microcode/os2top.c index 080b4662a..08d6b803a 100644 --- a/v7/src/microcode/os2top.c +++ b/v7/src/microcode/os2top.c @@ -1,6 +1,6 @@ /* -*-C-*- -$Id: os2top.c,v 1.6 1995/01/06 17:41:46 cph Exp $ +$Id: os2top.c,v 1.7 1995/01/06 22:12:13 cph Exp $ Copyright (c) 1994-95 Massachusetts Institute of Technology @@ -1545,6 +1545,15 @@ OS_error_code_to_message (unsigned int syserr) if (last_message != 0) free ((void *) last_message); last_message = (dos_error_message (code)); + /* Many of OS/2's error messages are terminated with a period, but + the runtime system is assuming that the messages have no period, + and adding its own. */ + if (last_message != 0) + { + length = (strlen (last_message)); + if ((length > 0) && ((last_message [length - 1]) == '.')) + (last_message [length - 1]) = '\0'; + } return (last_message); }