aboutsummaryrefslogtreecommitdiff
path: root/payloads/libpayload/curses/PDCurses-3.4/dos/pdcclip.c
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/curses/PDCurses-3.4/dos/pdcclip.c')
-rw-r--r--payloads/libpayload/curses/PDCurses-3.4/dos/pdcclip.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/payloads/libpayload/curses/PDCurses-3.4/dos/pdcclip.c b/payloads/libpayload/curses/PDCurses-3.4/dos/pdcclip.c
index 74607aa0bc..c5fa29108a 100644
--- a/payloads/libpayload/curses/PDCurses-3.4/dos/pdcclip.c
+++ b/payloads/libpayload/curses/PDCurses-3.4/dos/pdcclip.c
@@ -17,14 +17,14 @@ RCSID("$Id: pdcclip.c,v 1.33 2008/07/13 16:08:17 wmcbrine Exp $")
int PDC_clearclipboard(void);
Description:
- PDC_getclipboard() gets the textual contents of the system's
- clipboard. This function returns the contents of the clipboard
- in the contents argument. It is the responsibilitiy of the
+ PDC_getclipboard() gets the textual contents of the system's
+ clipboard. This function returns the contents of the clipboard
+ in the contents argument. It is the responsibilitiy of the
caller to free the memory returned, via PDC_freeclipboard().
- The length of the clipboard contents is returned in the length
+ The length of the clipboard contents is returned in the length
argument.
- PDC_setclipboard copies the supplied text into the system's
+ PDC_setclipboard copies the supplied text into the system's
clipboard, emptying the clipboard prior to the copy.
PDC_clearclipboard() clears the internal clipboard.
@@ -32,7 +32,7 @@ RCSID("$Id: pdcclip.c,v 1.33 2008/07/13 16:08:17 wmcbrine Exp $")
Return Values:
indicator of success/failure of call.
PDC_CLIP_SUCCESS the call was successful
- PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for
+ PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for
the clipboard contents
PDC_CLIP_EMPTY the clipboard contains no text
PDC_CLIP_ACCESS_ERROR no clipboard support
@@ -98,10 +98,10 @@ int PDC_freeclipboard(char *contents)
if (contents)
{
- /* NOTE: We free the memory, but we can not set caller's pointer
- to NULL, so if caller calls again then will try to access
- free'd memory. We 1st overwrite memory with a string so if
- caller tries to use free memory they won't get what they
+ /* NOTE: We free the memory, but we can not set caller's pointer
+ to NULL, so if caller calls again then will try to access
+ free'd memory. We 1st overwrite memory with a string so if
+ caller tries to use free memory they won't get what they
expect & hopefully notice. */
/* memset(contents, 0xFD, strlen(contents)); */
@@ -119,7 +119,7 @@ int PDC_clearclipboard(void)
{
PDC_LOG(("PDC_clearclipboard() - called\n"));
- if (pdc_DOS_clipboard)
+ if (pdc_DOS_clipboard)
{
free(pdc_DOS_clipboard);
pdc_DOS_clipboard = NULL;