Fix null ptr reference for freeReplyObject YAZ-773
[yaz-moved-to-github.git] / src / dumpber.c
index 4a7215f..a6901e7 100644 (file)
@@ -1,5 +1,5 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
  * See the file LICENSE for details.
  */
 
@@ -34,7 +34,7 @@ static int do_dumpBER(FILE *f, const char *buf, int len, int level, int offset)
         return 0;
     if (res > len)
     {
-        fprintf(f, "%5d: %s : Unexpected enf of buffer\n", offset, level_str);
+        fprintf(f, "%5d: %s : Unexpected end of buffer\n", offset, level_str);
         return 0;
     }
     fprintf(f, "%5d: %s", offset, level_str);