source:
trunk/unix/nosegfault.c
@
201
Last change on this file since 201 was 191, checked in by nanardon, 16 years ago | |
---|---|
|
|
File size: 120 bytes |
Rev | Line | |
---|---|---|
[191] | 1 | #include <string.h> |
2 | int 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.