]> git.proxmox.com Git - mirror_qemu.git/blobdiff - cutils.c
Revert "support colon in filenames"
[mirror_qemu.git] / cutils.c
index 6196a9055c6351833ff2a741f94720ef2d8dcc62..bd9a01950a7a298b1b223f774d82f7bd5b97da88 100644 (file)
--- a/cutils.c
+++ b/cutils.c
 #include "qemu-common.h"
 #include "host-utils.h"
 
-/*
- * fill first 'len' characters of 'buff' with pruned
- * contents of 'str' delimited by the character 'c'.
- * Escape character '\' is pruned off.
- * Return pointer to the delimiting character.
- */
-const char *fill_token(char *buf, const int len, const char *str, const char c)
-{
-    const char *p=str;
-    char *q=buf;
-
-    while (p < str+len-1) {
-    if (*p == c)
-        break;
-        if (*p == '\\') {
-            p++;
-            if (*p == '\0')
-                break;
-        }
-        *q++ = *p++;
-    }
-    *q='\0';
-    return p;
-}
-
-
 void pstrcpy(char *buf, int buf_size, const char *str)
 {
     int c;