Displaying 2 results from an estimated 2 matches for "char_to_int".
2016 Oct 17
0
Opus Demo code
...ode
refactored from opus_demo.c, the code appears to be reading from the wrong
point in the file. The problematic code is the following:
unsigned char ch[4];
err = fread(ch, 1, 4, fin);
if (feof(fin))
break;
len[toggle] = char_to_int(ch);
if (len[toggle]>max_payload_bytes || len[toggle]<0)
{
fprintf(stderr, "Invalid payload length: %d\n",len[toggle]);
break;
}
As you can see, it's reading the first four bytes from the file...
2000 Sep 28
1
[PATCH] Next cleanup part 4 or 5 by now.=)
Changes:
* Removed utimes() posix hack since scp.c moved to utimes()
* Fixed waitpid() to be more proper. It was driving me nuts.
* Made setsid() a #define in next-posix.h
* Removed WCOREDUMP() from next-posix.h since we really don't support
it and now #ifdef .. #else .. #endif around the single place it was
used.
* Fixed typecasting issue in sshd.c with sizeof() returning "long