source: tags/unix/20081113/nosegfault.c @ 216

Last change on this file since 216 was 191, checked in by nanardon, 15 years ago
  • begin UNIX talk
  • Property svn:eol-style set to native
File size: 120 bytes
Line 
1#include <string.h>
2int main(void) {
3    char * cp = malloc(10);
4    char * buf = malloc(1);
5    strncpy(cp, buf, 3);
6}
Note: See TracBrowser for help on using the repository browser.