]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
Fixed writing of a new volume label (if not already there).
authorhades <hades>
Sun, 21 May 2000 21:50:40 +0000 (21:50 +0000)
committerhades <hades>
Sun, 21 May 2000 21:50:40 +0000 (21:50 +0000)
hadaq/ansiTapeLabel.c

index 1b8b0151e416427af98c6baec8bf3da261e138c5..31bbf54d69cfb42c7bc6028a8058f9da7d74ce7a 100644 (file)
@@ -28,7 +28,7 @@ char *readVolumeLabel(int tape) {
        int stat;
        vol = allocMem(80*sizeof(char));
        stat = read(tape, vol, 80);
-       if(stat == -1) {
+       if(stat != 80) {
                vol = 0;
        }