From cafa1e2c15a9cbaad93e95fce8a740bea0ca20d7 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 8 Nov 1999 09:49:10 +0000 Subject: [PATCH] Typos. --- glib/gwin32.c | 4 ++-- gwin32.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/glib/gwin32.c b/glib/gwin32.c index 8aeb5ed..bd4ae65 100644 --- a/glib/gwin32.c +++ b/glib/gwin32.c @@ -806,8 +806,8 @@ g_win32_error_message (gint error) |FORMAT_MESSAGE_FROM_SYSTEM, NULL, error, 0, (LPTSTR) &msg, 0, NULL); - if (nbytes > 2 && error[nbytes-1] == '\n' && error[nbytes-2] == '\r') - error[nbytes-2] = '\0'; + if (nbytes > 2 && msg[nbytes-1] == '\n' && msg[nbytes-2] == '\r') + msg[nbytes-2] = '\0'; retval = g_strdup (msg); diff --git a/gwin32.c b/gwin32.c index 8aeb5ed..bd4ae65 100644 --- a/gwin32.c +++ b/gwin32.c @@ -806,8 +806,8 @@ g_win32_error_message (gint error) |FORMAT_MESSAGE_FROM_SYSTEM, NULL, error, 0, (LPTSTR) &msg, 0, NULL); - if (nbytes > 2 && error[nbytes-1] == '\n' && error[nbytes-2] == '\r') - error[nbytes-2] = '\0'; + if (nbytes > 2 && msg[nbytes-1] == '\n' && msg[nbytes-2] == '\r') + msg[nbytes-2] = '\0'; retval = g_strdup (msg); -- 2.7.4