Member #141589

Member Since: July 8, 2010

Country: United States

  • Product WRL-10533 | about 2 years ago

    No, this is completely legal. They set msg to point to a string with one character “1” in it. Later they send this 1-char string via vw_send(). The whole code is not efficient of course, calling strlen() on smth that is always having just one char is just waste of code and CPU, they could’ve gotten away with a single char variable instead of using a C string. But this is just an example, so as long as it’s readable and clear, it’s OK,

No public wish lists :(