aboutsummaryrefslogtreecommitdiff
path: root/iemlib2
diff options
context:
space:
mode:
authorWinfried Ritsch <ritsch@users.sourceforge.net>2009-09-30 10:09:29 +0000
committerWinfried Ritsch <ritsch@users.sourceforge.net>2009-09-30 10:09:29 +0000
commit583d8a32a267604f0c5916ce01bed307fef5b59c (patch)
treee119d35e4693ff26942d209b85cb3e3bcf7a8a9f /iemlib2
parenta98932766ed8e663aea8433cf34df31c92a67959 (diff)
reading with fread error was not handled properly
svn path=/trunk/externals/iemlib/; revision=12497
Diffstat (limited to 'iemlib2')
-rw-r--r--iemlib2/src/iem_pbank_csv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/iemlib2/src/iem_pbank_csv.c b/iemlib2/src/iem_pbank_csv.c
index d67f365..213e63c 100644
--- a/iemlib2/src/iem_pbank_csv.c
+++ b/iemlib2/src/iem_pbank_csv.c
@@ -431,7 +431,8 @@ static void iem_pbank_csv_read(t_iem_pbank_csv *x, t_symbol *filename, t_symbol
fseek(fh,0,SEEK_SET);
txbuf1 = (char *)getbytes(2 * txalloc * sizeof(char));
txbuf2 = (char *)getbytes(2 * txalloc * sizeof(char));
- fread(txbuf1, sizeof(char), txalloc, fh);
+ if(fread(txbuf1, sizeof(char), txalloc, fh) < sizeof(char)*txalloc)
+ post("pbank.csv:435: warning read error (not specified)");
fclose(fh);
// windows return