From: Tor Lillqvist Date: Mon, 8 Nov 1999 09:49:10 +0000 (+0000) Subject: Typos. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=cafa1e2c15a9cbaad93e95fce8a740bea0ca20d7;p=dana%2Fcg-glib.git Typos. --- diff --git a/glib/gwin32.c b/glib/gwin32.c index 8aeb5edb..bd4ae655 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 8aeb5edb..bd4ae655 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);