title: SDL_RWread return string with segmentation fault
body: <p>Can't use string variable to save/load as file by SDL_RWwrite/SDL_RWread.</p>
  
  <pre><code>// Save data
  SDL_RWops* storeDataFile = SDL_RWFromFile("data.bin", "w+b");
  if(storeDataFile != NULL) {
    string sStoreString = "Hello World";
    SDL_RWwrite(storeDataFile, &amp;sStoreString, sStoreString.size(), 1);
    SDL_RWclose(storeDataFile);
  }
  
  // Load data
  SDL_RWops* storeDataFile = SDL_RWFromFile("data.bin", "r+b");
  if(storeDataFile != NULL) {
    string sStoreString;
    SDL_RWread(storeDataFile, &amp;sStoreString, storeDataFile-&gt;size(storeDataFile), 1);
    SDL_RWclose(storeDataFile);
  
    cout &lt;&lt; sStoreString &lt;&lt; endl;
  }
  </code></pre>
  
  <p>That last cout line will give segmentation fault error.
  If replace string by int, then it works fine.</p>