Changeset 121 in MondoRescue for trunk/mondo/mondo/common/libmondo-string.c
- Timestamp:
- Nov 10, 2005, 3:24:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-string.c
r89 r121 32 32 * @param partno The partition number (e.g. 1) 33 33 * @param partition Where to put the partition name (e.g. /dev/hda1) 34 * @return @p partition. 34 * @return @p partition. The caller has to free it. 35 35 * @note If @p drive ends in a digit, then 'p' (on Linux) or 's' (on *BSD) is added before @p partno. 36 36 */ … … 257 257 assert(width > 2); 258 258 259 asprintf( output, "%s", incoming);259 asprintf(&output, "%s", incoming); 260 260 for (i = (int) strlen(output); i < width; i++) { 261 261 output[i] = ' ';
Note:
See TracChangeset
for help on using the changeset viewer.