Thanks for the bug report Sigbjorn - I've applied your fix to Hugs.

Alastair
           
diff -C2 -r1.25 -r1.26
*** storage.c   1997/07/17 20:52:57     1.25
--- storage.c   1997/07/31 15:53:00     1.26
***************
*** 2292,2301 ****
          String stmode;
        if (binary) {
!           stmode = (hmode&HAPPEND) ? "ab" :
!                    (hmode&HWRITE)  ? "wb" :
                     (hmode&HREAD)   ? "rb" : (String)0;
        } else {
!           stmode = (hmode&HAPPEND) ? "a"  :
!                    (hmode&HWRITE)  ? "w"  :
                     (hmode&HREAD)   ? "r"  : (String)0;
        }
--- 2292,2301 ----
          String stmode;
        if (binary) {
!           stmode = (hmode&HAPPEND) ? "ab+" :
!                    (hmode&HWRITE)  ? "wb+" :
                     (hmode&HREAD)   ? "rb" : (String)0;
        } else {
!           stmode = (hmode&HAPPEND) ? "a+"  :
!                    (hmode&HWRITE)  ? "w+"  :
                     (hmode&HREAD)   ? "r"  : (String)0;
        }

Reply via email to