From: hades Date: Sun, 21 May 2000 21:50:40 +0000 (+0000) Subject: Fixed writing of a new volume label (if not already there). X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=267cd13e135f26262f0f2f6709a6a8a91b7b824a;p=daqdata.git Fixed writing of a new volume label (if not already there). --- diff --git a/hadaq/ansiTapeLabel.c b/hadaq/ansiTapeLabel.c index 1b8b015..31bbf54 100644 --- a/hadaq/ansiTapeLabel.c +++ b/hadaq/ansiTapeLabel.c @@ -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; }