List:Internals« Previous MessageNext Message »
From:Jim Winstead Date:June 8 2005 12:44am
Subject:bk commit into 4.1 tree (jimw:1.2324) BUG#10841
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of jwinstead. When jwinstead does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2324 05/06/08 00:43:57 jimw@stripped +1 -0
  Fix calculation of buffer size for _cgets() on Windows. (Bug #10841)

  client/mysql.cc
    1.206 05/06/08 00:43:26 jimw@stripped +2 -1
    Fix calculation of buffer size for _cgets()

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	jimw
# Host:	production.mysql.com
# Root:	/usersnfs/jwinstead/mysql-4.1-10841

--- 1.205/client/mysql.cc	2005-05-16 19:16:43 +02:00
+++ 1.206/client/mysql.cc	2005-06-08 00:43:26 +02:00
@@ -972,7 +972,8 @@
           *p = '\0';
       }
 #else
-      linebuffer[0]= (char) sizeof(linebuffer);
+      /* _cgets() expects the buffer size - 3 as the first byte */
+      linebuffer[0]= (char) sizeof(linebuffer) - 3;
       line= _cgets(linebuffer);
 #endif /* __NETWARE__ */
 #else
Thread
bk commit into 4.1 tree (jimw:1.2324) BUG#10841Jim Winstead8 Jun