diff options
author | cnlohr <lohr85@gmail.com> | 2017-03-15 21:32:09 -0400 |
---|---|---|
committer | cnlohr <lohr85@gmail.com> | 2017-03-15 21:32:09 -0400 |
commit | 2b93b2c57f8fea99ed9a5de520b274696e058faf (patch) | |
tree | efb55c68a7d7a381fad625acbd2a3f67195b5b82 /src/survive.c | |
parent | eeb4bc3ce4c70be89cbe963075907eceebe77d18 (diff) | |
download | libsurvive-2b93b2c57f8fea99ed9a5de520b274696e058faf.tar.gz libsurvive-2b93b2c57f8fea99ed9a5de520b274696e058faf.tar.bz2 |
fix puff for headset.
Diffstat (limited to 'src/survive.c')
-rwxr-xr-x | src/survive.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/survive.c b/src/survive.c index 1b5bed1..3c16353 100755 --- a/src/survive.c +++ b/src/survive.c @@ -253,8 +253,8 @@ struct SurviveObject * survive_get_so_by_name( struct SurviveContext * ctx, cons int survive_simple_inflate( struct SurviveContext * ctx, const char * input, int inlen, char * output, int outlen ) { unsigned long ol = outlen; - unsigned long il = inlen; - int ret = puff( output, &ol, input, &il ); + unsigned long il = inlen-2; + int ret = puff( output, &ol, input+2, &il ); if( ret == 0 ) return ol; else |