emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lib-src/update-game-score.c


From: Andreas Schwab
Subject: [Emacs-diffs] Changes to emacs/lib-src/update-game-score.c
Date: Sat, 13 Apr 2002 21:02:36 -0400

Index: emacs/lib-src/update-game-score.c
diff -c emacs/lib-src/update-game-score.c:1.5 
emacs/lib-src/update-game-score.c:1.6
*** emacs/lib-src/update-game-score.c:1.5       Wed Apr 10 15:10:23 2002
--- emacs/lib-src/update-game-score.c   Sat Apr 13 21:02:36 2002
***************
*** 249,255 ****
    ungetc(c, f);
  #ifdef HAVE_GETDELIM
    {
!     int count = 0;
      if (getdelim(&score->username, &count, ' ', f) < 1
        || score->username == NULL)
        return -1;
--- 249,255 ----
    ungetc(c, f);
  #ifdef HAVE_GETDELIM
    {
!     size_t count = 0;
      if (getdelim(&score->username, &count, ' ', f) < 1
        || score->username == NULL)
        return -1;
***************
*** 279,287 ****
  #endif
  #ifdef HAVE_GETLINE
    score->data = NULL;
!   errno = ESUCCES;
    {
!     int len;
      if (getline(&score->data, &len, f) < 0)
        return -1;
      score->data[strlen(score->data)-1] = '\0';
--- 279,287 ----
  #endif
  #ifdef HAVE_GETLINE
    score->data = NULL;
!   errno = 0;
    {
!     size_t len;
      if (getline(&score->data, &len, f) < 0)
        return -1;
      score->data[strlen(score->data)-1] = '\0';



reply via email to

[Prev in Thread] Current Thread [Next in Thread]