- Timestamp:
- Jul 6, 2015, 8:06:50 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/opihi/lib.shell/ConfigInit.c
r16900 r38572 38 38 } 39 39 40 // XXX this is a bit dangerous : answer may have an arbitrary 41 // length, but we do not know the available space in 'ptr' 42 // we really should be passing in the buffer size and limiting the copy 43 44 40 45 if (!strcmp (mode, "%s")) strcpy ((char *) ptr, answer); 41 46 if (!strcmp (mode, "%d")) *(int *) ptr = atoi (answer);
Note:
See TracChangeset
for help on using the changeset viewer.
