diff -ruN kphone/kphone/dspoutalsa.cpp kphone-new/kphone/dspoutalsa.cpp --- kphone/kphone/dspoutalsa.cpp 2005-04-22 14:09:34.000000000 +0200 +++ kphone-new/kphone/dspoutalsa.cpp 2005-05-21 10:54:22.000000000 +0200 @@ -189,7 +189,11 @@ #ifdef ALSADEBUG fprintf(stderr, "write %d instead of %d frames !\n", rc, (int)count/2); #endif - (int8_t*) buf += rc*4; + int8_t * temp; + temp = (int8_t*) buf; + temp += rc*4; + buf = temp; + // (int8_t*) buf += rc*4; count -= rc*2; continue; }