Commit 9b6740ec authored by Jim Fulton's avatar Jim Fulton

Fixed stupid typo made while adding sanity checks after readline calls.

parent 408e068f
/* /*
* $Id: cPickle.c,v 1.63 1999/02/05 01:40:06 jim Exp $ * $Id: cPickle.c,v 1.64 1999/02/08 23:16:38 jim Exp $
* *
* Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA. * Copyright (c) 1996-1998, Digital Creations, Fredericksburg, VA, USA.
* All rights reserved. * All rights reserved.
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
static char cPickle_module_documentation[] = static char cPickle_module_documentation[] =
"C implementation and optimization of the Python pickle module\n" "C implementation and optimization of the Python pickle module\n"
"\n" "\n"
"$Id: cPickle.c,v 1.63 1999/02/05 01:40:06 jim Exp $\n" "$Id: cPickle.c,v 1.64 1999/02/08 23:16:38 jim Exp $\n"
; ;
#include "Python.h" #include "Python.h"
...@@ -3087,7 +3087,7 @@ load_put(Unpicklerobject *self) { ...@@ -3087,7 +3087,7 @@ load_put(Unpicklerobject *self) {
char *s; char *s;
if ((l = (*self->readline_func)(self, &s)) < 0) return -1; if ((l = (*self->readline_func)(self, &s)) < 0) return -1;
if (len < 2) return bad_readline(); if (l < 2) return bad_readline();
UNLESS (len=self->stack->length) return stackUnderflow(); UNLESS (len=self->stack->length) return stackUnderflow();
UNLESS (py_str = PyString_FromStringAndSize(s, l - 1)) return -1; UNLESS (py_str = PyString_FromStringAndSize(s, l - 1)) return -1;
value=self->stack->data[len-1]; value=self->stack->data[len-1];
...@@ -4297,7 +4297,7 @@ init_stuff(PyObject *module, PyObject *module_dict) { ...@@ -4297,7 +4297,7 @@ init_stuff(PyObject *module, PyObject *module_dict) {
DL_EXPORT(void) DL_EXPORT(void)
initcPickle() { initcPickle() {
PyObject *m, *d, *v; PyObject *m, *d, *v;
char *rev="$Revision: 1.63 $"; char *rev="$Revision: 1.64 $";
PyObject *format_version; PyObject *format_version;
PyObject *compatible_formats; PyObject *compatible_formats;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment