]> code.delx.au - gnu-emacs/blobdiff - src/termcap.c
Remove undefined behavior in OS X dumper.
[gnu-emacs] / src / termcap.c
index 8c766bd1994f1afb86a5c6529d016bd93d3b5cf4..3ecf19ff786898eea454654cd0422eafd558c0e1 100644 (file)
@@ -1,5 +1,5 @@
 /* Work-alike for termcap, plus extra features.
-   Copyright (C) 1985-1986, 1993-1995, 2000-2008, 2011, 2013-2014 Free
+   Copyright (C) 1985-1986, 1993-1995, 2000-2008, 2011, 2013-2016 Free
    Software Foundation, Inc.
 
 This program is free software; you can redistribute it and/or modify
@@ -520,7 +520,7 @@ scan_file (char *str, int fd, struct termcap_buffer *bufp)
   bufp->ateof = 0;
   *bufp->ptr = '\0';
 
-  lseek (fd, 0L, 0);
+  lseek (fd, 0, 0);
 
   while (!bufp->ateof)
     {