source:
trunk/unix/nosegfault.c
@
191
Last change on this file since 191 was 191, checked in by nanardon, 16 years ago | |
---|---|
|
|
File size: 120 bytes |
Line | |
---|---|
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.