diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-08-05 12:35:08 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-08-05 12:35:08 -0500 |
commit | 2d12b296e0f77dd5f931cab00fe12ef5ce18284d (patch) | |
tree | 7335ad6c9fb87825368577a81cfca7045ce7a6ee | |
parent | fdc129e3e257e0c74a844e6445eb6c5fcb55cb29 (diff) | |
download | ofono-2d12b296e0f77dd5f931cab00fe12ef5ce18284d.tar.bz2 |
Don't hardcode info len to 6
-rw-r--r-- | src/sim.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -443,7 +443,7 @@ static gboolean cache_info(const char *path, const unsigned char *info, int len) r = TFR(write(fd, info, len)); TFR(close(fd)); - if (r < 6) { + if (r < len) { unlink(path); return FALSE; } |